help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

negation in class definition


From: Shannon Lee
Subject: negation in class definition
Date: Wed, 29 Aug 2001 13:34:27 -0700
User-agent: Mutt/1.2.5i

in the cfengine reference manual, there is an example given of a negative
group definition:

        notthis = ( !this )

yet when i tried to use this idiom, i got the error:

     Wildcards cannot be used in this context

what am i doing wrong?

also, is this supposed to be able to negate another group, or just a
hostname, or what?  for example, what actually want to do is something
like:

     mailhosts = ( host1 host2 )
     nonmailhosts = ( !mailhosts )

ie, all machines which are not part of the 'mailhosts' group are part of the
'nonmailhosts'  group -- and as such can, for example, have a 'client'
sendmail config copied over and have the links to sendmail startup scripts
removed from /etc/rc[0-9].d/.

-- 
--shannon

--
    -----------------------------------
     Shannon Lee - shannon@scatter.com
         *    *    *    *    *    *
     I _said_, "i've got a big stick."
    -----------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]