CFEngine Help: Re: CFEngine Help: Re: if assignment in cfengine

2012-01-05 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: Re: if assignment in cfengine Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,24461,24488#msg-24488 Mark Burgess Wrote: --- > Simon, with ifvarclass => you can make s

Re: CFEngine Help: Re: if assignment in cfengine

2012-01-05 Thread Mark Burgess
Simon, with ifvarclass => you can make strings composed of variables, where with the context:: syntax you can't. Personally i find context:: clearer, but the other is more flexible for "fancy" context handling. M On 01/05/2012 09:36 AM, Simon Blake wrote: > On Wed, Jan 04, 2012 at 03:12:1

CFEngine Help: Re: if assignment in cfengine

2012-01-05 Thread no-reply
Forum: CFEngine Help Subject: Re: if assignment in cfengine Author: davidlee Link to topic: https://cfengine.com/forum/read.php?3,24461,24483#msg-24483 Thanks, Simon. I think you're right about my file:/commands: example. I had simplified it from a generalised library that we have, in

Re: CFEngine Help: Re: if assignment in cfengine

2012-01-05 Thread Simon Blake
On Wed, Jan 04, 2012 at 03:12:17PM +0100, davidlee said: > commands: > ### If a file was adjusted above, run a command: > optional_class:: > "/sbin/service my_service restart" > ifvarclass => "class_indicating_file_change"; Is there any particular reason to use the above s

AW: if assignment in cfengine

2012-01-04 Thread Seifert, Christian
assignment in cfengine On 01/04/2012 07:28 AM, Daniel V. Klein wrote: > You probably want to look at "promise_repaired" at > http://cfengine.com/manuals/cf3-reference.html#classes-in-_002a - but note > that this applies to the WHOLE promise, so you should be careful where you > set

Re: if assignment in cfengine

2012-01-04 Thread Nick Anderson
On 01/04/2012 07:28 AM, Daniel V. Klein wrote: > You probably want to look at "promise_repaired" at > http://cfengine.com/manuals/cf3-reference.html#classes-in-_002a - but note > that this applies to the WHOLE promise, so you should be careful where you > set the class (that is, in the main prom

CFEngine Help: Re: if assignment in cfengine

2012-01-04 Thread no-reply
Forum: CFEngine Help Subject: Re: if assignment in cfengine Author: davidlee Link to topic: https://cfengine.com/forum/read.php?3,24461,24463#msg-24463 Personally I use a structure something like: files: optional_class:: "my_file" ### copy/edit the file

Re: if assignment in cfengine

2012-01-04 Thread Daniel V. Klein
You probably want to look at "promise_repaired" at http://cfengine.com/manuals/cf3-reference.html#classes-in-_002a - but note that this applies to the WHOLE promise, so you should be careful where you set the class (that is, in the main promise, in a subcomponent, etc). But FWIW, I use this fe

if assignment in cfengine

2012-01-04 Thread Seifert, Christian
Hello everybody, i have a simple question about the syntax in cfengine. I want to configurate the snmpd.conf on many systems in my it-infrastructure. For this task, I make changes on the snmp config file on the systems. After that, the snmd service should do a restart. The problem is followin