If you have a single case, then special:: and !special is better.  If you have
more than that, then any:: is better :-)

> Thanks, Dan. I was hoping that any:: would be better since I may need
> additional cases in the future and was hoping to avoid something like:
> 
> !(special|other):: 
>     "dns_search_domains" string => "mydomain.com";
> 
> special::
>     "dns_search_domain" string => "special.mydomain.com mydomain.com";
> 
> other::
>     "dns_search_domain" string => "other.mydomain.com mydomain.com";
> 
> Justin
> 
> -----Original Message-----
> From: Daniel V Klein [mailto:d...@lonewolf.com] 
> Sent: Thursday, February 25, 2010 1:38 PM
> To: Justin Lloyd
> Cc: Help-cfengine
> Subject: Re: Overriding default variables 
> 
> You need to add
>       policy => 'overridable'
> in the first promise if you want to specify a default assignment with
> special
> overrides.  But IMHO, I like the !special class better...
> 
> -Dan
> 
> > I want to use the standard resolvconf() bundle but I need a special
> > search list for certain hosts. I may eventually need more exceptions
> to
> > the default, so I'm hoping the "any" approach would be fine.
> > 
> > any:: # or should this be !special:: ?
> >     "dns_search_domains" string => "mydomain.com";
> > 
> > special::
> >     "dns_search_domain" string => "special.mydomain.com mydomain.com";
> > 
> > 
> > Thanks,
> > Justin
> > 
> > -- 
> > Justin C. Lloyd 
> > Unix Infrastructure Engineer 
> > DigitalGlobe, An Imaging and Information Company
> > 
> > 
> > 
> > This electronic communication and any attachments may contain
> confidential an
> > d proprietary 
> > information of DigitalGlobe, Inc. If you are not the intended
> recipient, or a
> > n agent or employee 
> > responsible for delivering this communication to the intended
> recipient, or i
> > f you have received 
> > this communication in error, please do not print, copy, retransmit,
> dissemina
> > te or 
> > otherwise use the information. Please indicate to the sender that you
> have re
> > ceived this 
> > communication in error, and delete the copy you received. DigitalGlobe
> reserv
> > es the 
> > right to monitor any electronic communication sent or received by its
> employe
> > es, agents 
> > or representatives.
> > 
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@cfengine.org
> > https://cfengine.org/mailman/listinfo/help-cfengine
> 
> This electronic communication and any attachments may contain confidential an
> d proprietary 
> information of DigitalGlobe, Inc. If you are not the intended recipient, or a
> n agent or employee 
> responsible for delivering this communication to the intended recipient, or i
> f you have received 
> this communication in error, please do not print, copy, retransmit, dissemina
> te or 
> otherwise use the information. Please indicate to the sender that you have re
> ceived this 
> communication in error, and delete the copy you received. DigitalGlobe reserv
> es the 
> right to monitor any electronic communication sent or received by its employe
> es, agents 
> or representatives.
> 
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to