[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Evaluation in groups:
From: |
Chip Seraphine |
Subject: |
Evaluation in groups: |
Date: |
Tue, 20 Jul 2004 15:22:17 -0500 |
User-agent: |
KMail/1.5.4 |
Got a question about the newfangled ability to use classes:: in the groups:
section.
The following config (in 2.1.6):
groups:
sunos_5_9::
sun_class= ( ReturnsZero(/bin/echo testing sun class) )
linux::
linux_class= ( ReturnsZero(/bin/echo testing linux class) )
control:
actionsequence = ( shellcommands )
alerts:
sun_class::
"we are solaris"
linux_class::
"we are linux"
... will generate this output when run on a Sun 5.9 machine: .)
$ /var/cfengine/bin/cfagent -qK -f ~/cfagent-test.conf
testing sun class
testing linux class
cfengine:: we are solaris
The classes are set correctly, but the ReturnsZero in the linux section fires
anyway! Aside from being inefficient, this is somewhat problematic since it
prevents you from doing OS specific things in the groups: section, such as if
you needed to execute a different path on different operating systems (which
is often needed because there is no 'noabspatch' option in evaluated
classes).
Is this behavior correctable? (Or is it desireable behavior that I am not
understanding correctly?)
--
Chip Seraphine
Unix Administrator
TradeLink, LLC
312-264-2048
chip@trdlnk.com
- Evaluation in groups:,
Chip Seraphine <=