CFEngine Help: Re: Odd behaviour of splitstring

2012-02-24 Thread no-reply
Forum: CFEngine Help Subject: Re: Odd behaviour of splitstring Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25023,25025#msg-25025 Back to splitstring. It seems that duplicate lines are skipped suggesting there is some associative array being used in the source code.

CFEngine Help: Re: Odd behaviour of splitstring

2012-02-24 Thread no-reply
Forum: CFEngine Help Subject: Re: Odd behaviour of splitstring Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25023,25024#msg-25024 The readstringlist, with a split regex of \n, also drops the last line. ___ Help-cfengine maili

CFEngine Help: Odd behaviour of splitstring

2012-02-24 Thread no-reply
Forum: CFEngine Help Subject: Odd behaviour of splitstring Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25023,25023#msg-25023 My goal is to make a string from an external command, convert the string into a list and then grep only the list items I want. bundle agent i

CFEngine Help: Re: cfengine community library problems on RH6 x64

2012-02-24 Thread no-reply
Forum: CFEngine Help Subject: Re: cfengine community library problems on RH6 x64 Author: bmarsh Link to topic: https://cfengine.com/forum/read.php?3,25018,25021#msg-25021 False Alarm... I've been working on rh6 and rh5 boxes and got confused. We had placed both rpms for below in one repo. cfengi

CFEngine Help: Re: readstringlist

2012-02-24 Thread no-reply
Forum: CFEngine Help Subject: Re: readstringlist Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25015,25020#msg-25020 Greedy strikes again. Good catch Diego. ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cf

CFEngine Help: Re: readstringlist

2012-02-24 Thread no-reply
Forum: CFEngine Help Subject: Re: readstringlist Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,25015,25019#msg-25019 Hi Neil, The reason is that CFEngine does matching on the whole contents of the file, so by using ".*" it is swallowing the rest of the file after the firs

CFEngine Help: cfengine community library problems on RH6 x64

2012-02-24 Thread no-reply
Forum: CFEngine Help Subject: cfengine community library problems on RH6 x64 Author: bmarsh Link to topic: https://cfengine.com/forum/read.php?3,25018,25018#msg-25018 We upgraded glibc a few days ago and we think this caused cfengine to not start up. I get this error from the init script: Start

Re: CFEngine Help: Re: dynamic bundlesequence - Neil's example breaks if the soft class is defined within the promise file

2012-02-24 Thread Aleksey Tsalolikhin
On Fri, Feb 24, 2012 at 8:05 AM, Neil Watson wrote: > > I think that normal ordering is the issue.  Vars are defined before classes.   > If you want the vars defined first try putting them in another common bundle > located above the common bundle in the example. Brilliant. Thanks, Neil. That

Re: dynamic bundlesequence - Neil's example breaks if the soft class is defined within the promise file

2012-02-24 Thread Nicolas Charles
On 24/02/2012 16:35, Aleksey Tsalolikhin wrote: > EXECUTIVE SUMMARY: What's needed is the ability to dynamically > construct the inputs list and the bundlesequence list. Is this possible > in CFEngine 3? If so, could you please demonstrate how to do it? > If not, could it be made possible, plea

CFEngine Help: readstringlist

2012-02-24 Thread no-reply
Forum: CFEngine Help Subject: readstringlist Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25015,25015#msg-25015 I would like to read a file into a slist so that each line is a list element. # This is a comment body common control { bundlesequence => {

CFEngine Help: Re: How to solve the issue of unreachable host ?

2012-02-24 Thread no-reply
Forum: CFEngine Help Subject: Re: How to solve the issue of unreachable host ? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,24990,25014#msg-25014 https://cfengine.com/forum/read.php?3,24844 ___ Help-cfengine mailing list Help

CFEngine Help: Re: dynamic bundlesequence - Neil's example breaks if the soft class is defined within the promise file

2012-02-24 Thread no-reply
Forum: CFEngine Help Subject: Re: dynamic bundlesequence - Neil's example breaks if the soft class is defined within the promise file Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25007,25013#msg-25013 I think that normal ordering is the issue. Vars are defined before

CFEngine Help: Re: How to solve the issue of unreachable host ?

2012-02-24 Thread no-reply
Forum: CFEngine Help Subject: Re: How to solve the issue of unreachable host ? Author: obris Link to topic: https://cfengine.com/forum/read.php?3,24990,25012#msg-25012 Hi Pritesh, On the server, you have "nova> !!! System error for bind: "Address already in use". You can't have two instances of

Re: dynamic bundlesequence - Neil's example breaks if the soft class is defined within the promise file

2012-02-24 Thread Aleksey Tsalolikhin
EXECUTIVE SUMMARY: What's needed is the ability to dynamically construct the inputs list and the bundlesequence list. Is this possible in CFEngine 3? If so, could you please demonstrate how to do it? If not, could it be made possible, please? Getting this working is the last thing that stands