CFEngine Help: Section in config files/set_variable_values

2012-09-10 Thread no-reply
Forum: CFEngine Help Subject: Section in config files/set_variable_values Author: th Link to topic: https://cfengine.com/forum/read.php?3,27257,27257#msg-27257 Hello, For simple editions in simply structured configuration files, I'm using the method described in Diego Zamboni's book for editing

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

2012-09-10 Thread Nick Anderson
On 09/10/2012 01:16 AM, Diego Zamboni wrote: > 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. > > Attach

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

2012-09-10 Thread no-reply
Forum: CFEngine Help Subject: Re: How-to insert multi line string at the top of file ? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,27226,27259#msg-27259 There must be a bug in 3.3.5 which will be fixed in 3.4.0. My agent was 3.4.0b1.

Re: Overriding/setting array variables with a list

2012-09-10 Thread Nick Anderson
On 09/09/2012 10:22 PM, Diego Zamboni wrote: > 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:: >

CFEngine Help: Re: Section in config files/set_variable_values

2012-09-10 Thread no-reply
Forum: CFEngine Help Subject: Re: Section in config files/set_variable_values Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,27257,27261#msg-27261 I've been meaning to add that to the config_sshd example. Your question might just give me the little push I need to actually d

Hostname gets truncated at 8 chars in cfengine-community 3.3.5 on hpux 11.31

2012-09-10 Thread Aleksey Tsalolikhin
I no longer have access to HP-UX systems. Anybody else on the list can help Louis, please? Best, Aleksey On Mon, Sep 10, 2012 at 8:14 AM, Francoeur, Louis wrote: > As per the subject, it is version 3.3.5 but l also have the same problem > with 3.3.4. > > Louis > > > On Aug 2, 2012 7:30 AM, "Fr

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

2012-09-10 Thread Aleksey Tsalolikhin
On Sun, Sep 9, 2012 at 11:08 AM, Marco Marongiu wrote: > 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

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

2012-09-10 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,27266#msg-27266 You're right as always. I've found following bug https://cfengine.com/bugtracker/view.php?id=809 and following sta

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

2012-09-10 Thread no-reply
Forum: CFEngine Help Subject: Re: Aborting CFEngine agent if there is an earlier instance of it already running Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,27239,27267#msg-27267 I had no luck with expireafter. As I recall, there was some discussion earlier about adding a

CFEngine Help: Re: indentation and insert_lines

2012-09-10 Thread no-reply
Forum: CFEngine Help Subject: Re: indentation and insert_lines Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,27160,27268#msg-27268 Gregory Matthews Wrote: --- > The only other way to do it that I've found is to > define the f

CFEngine Help: Re: passing lists to external body parts (Was: Re: indentation and insert_lines)

2012-09-10 Thread no-reply
Forum: CFEngine Help Subject: Re: passing lists to external body parts (Was: Re: indentation and insert_lines) Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,27201,27269#msg-27269 I'm pretty sure this is because the list isn't actually passed - a name of the list is what's pa

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

2012-09-10 Thread no-reply
Forum: CFEngine Help Subject: Re: Raise a class when class thing1 but not class thing2 Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,27246,27270#msg-27270 How about substituting your variable class names into: classes: "a_and_not_b" or => { "any" }, ifvarclass => "a