RE: CFEngine Help: Re: create class which is a superset of another class

2012-02-08 Thread Lisa Sittler
It worked! Thanks for the help, Lisa -Original Message- From: Nicolas Charles [mailto:nicolas.char...@normation.com] Sent: Tuesday, February 07, 2012 5:16 PM To: Lisa Sittler Cc: help-cfengine@cfengine.org Subject: Re: CFEngine Help: Re: create class which is a superset of another

Re: CFEngine Help: Re: create class which is a superset of another class

2012-02-07 Thread Nicolas Charles
On 07/02/2012 19:36, Lisa Sittler wrote: > Hi Nicholas, > > Thanks for the help. I have a working promise file now, based on what you > and Nick Anderson suggested. > > I wasn't able to get the following class definition to work: > > "agents" expression => and(regcmp( "ag.*", "$(sys.host)" ),

RE: CFEngine Help: Re: create class which is a superset of another class

2012-02-07 Thread Lisa Sittler
Tuesday, February 07, 2012 10:22 AM To: help-cfengine@cfengine.org Subject: Re: CFEngine Help: Re: create class which is a superset of another class Hi Lisa ! > >> But it seems to me that OR will not work with more than two choices >> and in reality I want to merge more

Re: CFEngine Help: Re: create class which is a superset of another class

2012-02-07 Thread Nicolas Charles
Hi Lisa ! > >> But it seems to me that OR will not work with more >> than two choices and in reality I want to merge >> more than two classes. I guess I could use an AND >> in that case? > Why would it not work? OR is a logical operation, it would work on any number > of classes: > > "some_c

CFEngine Help: Re: create class which is a superset of another class

2012-02-07 Thread no-reply
Forum: CFEngine Help Subject: Re: create class which is a superset of another class Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,24736,24749#msg-24749 > Let's say I want to create a class which contains > both classes: > > "agents_and_master" or => { > "