help-cfengine
[Top][All Lists]
Advanced

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

Re: negation in class definition


From: Chris Edillon
Subject: Re: negation in class definition
Date: Wed, 29 Aug 2001 23:17:58 -0400 (GMT+4)

On Wed, 29 Aug 2001, Shannon Lee wrote:

> 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/.
> 
  not that this answers your question exactly, but is there a
reason you can't just do:

copy:

  !mailhosts::

    /path/to/client.sendmail.cf  server=foo.com  dest=/etc/sendmail.cf


chris




reply via email to

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