On Feb 6, 2007, at 9:39 AM, ADNET Ghislain wrote:
> Hello,
>
> i am trying to use tag() and tagged() to try to change the
> settings of my servers. For exemple i have a define webmin to
> install webmin, i have a define apache2 that install apache2. Now
> when i am in the apache2 define i use tag(apache) and in webmin
> define i use
>
> case tagged(apache) {
> true: { package { webmin-apache: ensure => latest } }
> }
>
> but this just don''t work. if i add to the node tag(apache) then
it
> work. Why can''t i tag into a define ?
At this point the tagging is file-order dependent: Puppet''s parser
can only see tags that were created before the current line.
I expect that your webmin definition is used before your apache2
definition, which is why you''re having this problem.
As soon as I can figure out how to solve this problem, I will.
--
A motion to adjourn is always in order.
--Robert Heinlein
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com