Overriding/setting array variables with a list

2012-09-09 Thread Nick Anderson
Is it expected behavior that you cannot create new index values with a list? If I do a simple array creation with a list it seems to work https://gist.github.com/3684884 (set_array_values_with_list.cf) cf-agent -KIf ./set_array_values_with_list.cf R: Array: local_array[id1]=value R: Array: local

Re: CFEngine Help: Re: Aborting CFEngine agent if there is an earlier instance of it already running

2012-09-09 Thread Marco Marongiu
On 07/09/12 13:11, no-re...@cfengine.com wrote: > Look at expireafter in agent control. Hi Neil, all I see in the reference that expireafter has a default value of 1 minute "for time before on-going promise repairs are interrupted". If it was effective in Aleksey, he would never have the problem

CFEngine Help: Verbose report in outputs directory and non verbose by email

2012-09-09 Thread no-reply
Forum: CFEngine Help Subject: Verbose report in outputs directory and non verbose by email Author: jbdenis Link to topic: https://cfengine.com/forum/read.php?3,27253,27253#msg-27253 Hello everybody, I'm running cf-agent using the verbose output (with verbose => "true" in the agent control body)

Re: Overriding/setting array variables with a list

2012-09-09 Thread Diego Zamboni
Nick, You are indeed hitting a bug, this one: https://cfengine.com/bugtracker/view.php?id=904 The workaround is to condition the getindices() so that it happens only on the second pass, with something like this: secondpass:: "array_keys" slist => getindices("local_array"); classes

Re: CFEngine Help: Re: Raise a class when class thing1 but not class thing2

2012-09-09 Thread Diego Zamboni
Hi Nick, I haven't fully worked through the reason, but I'm pretty sure the problem lies with the not(), because the not() function returns a string, which is then being classify-ed - so the "!" inserted by the not() would be lost. Attached is an example that works - it precomputes the canonifi

CFEngine Help: Re: How-to insert multi line string at the top of file ?

2012-09-09 Thread no-reply
Forum: CFEngine Help Subject: Re: How-to insert multi line string at the top of file ? Author: juriskrumins Link to topic: https://cfengine.com/forum/read.php?3,27226,27256#msg-27256 Executing the policy you've provided (no changes) using my cfengine installation gives following results: # cf-ag