Re: clever array and slist usage?

2010-12-17 Thread Seva Gluschenko
Jesse, unfortunately, the Cfengine has limitations when evaluating variables, so deep nesting should be avoided as far as possible. I'm not the Cfengine developer to tell for sure whether you met the natural limit of the evaluation depth, or is it just a bug, but this behaviour remains pretty the

clever array and slist usage?

2010-12-17 Thread Jesse Becker
So, the snipped below does not work, but I wish that it did. It also isn't limited to package promises either, I can think of cases for file and command promises as well. At a high level, I am trying to define per-host lists, then iterate over those lists, but only on the appropriate host. <

Re: classes

2010-12-17 Thread Daniel V. Klein
No - if Cfengine wants a list, you have to give it a list. But just upgrade to the latest version - the bug is fixed. -Dan On Dec 17, 2010, at 2:25 PM, Sandra Wittenbrock wrote: > Thanks for the quick and informative response! Is there a way to define a > class with only one entry, which is

Re: Reference manual error in "Allowed input range" for 'type: int'

2010-12-17 Thread Mark Burgess
Sorry. It should self-repair in a while. On 12/17/2010 11:32 PM, Jesse Becker wrote: > It looks like a fairly ugly bug has snuck into the reference manual > posted online. > > It looks like many of the "Allowed Input Range" values have a bunch of > junk after them. It seems to affect mostly "ty

Reference manual error in "Allowed input range" for 'type: int'

2010-12-17 Thread Jesse Becker
It looks like a fairly ugly bug has snuck into the reference manual posted online. It looks like many of the "Allowed Input Range" values have a bunch of junk after them. It seems to affect mostly "type: int", but there are others as well. From section 5.1.12, syslog_port: Type: int

Re: classes

2010-12-17 Thread Sandra Wittenbrock
Thanks for the quick and informative response! Is there a way to define a class with only one entry, which is not a list? Could that avoid the bug with "singleton lists"? Cheers, Sandra On 12/17/2010 02:19 PM, Daniel V. Klein wrote: > I did not read your config in detail, but you said "only

Re: classes

2010-12-17 Thread Daniel V. Klein
I did not read your config in detail, but you said "only one server in a class" and then I see lists, so... If you are running 3.1.0(?), you have possibly stumbled across a bug with singleton lists that is repaired in the versions after that. Upgrade to the latest version, and you should see th

classes

2010-12-17 Thread Sandra Wittenbrock
Hello, I am using cfengine for firewall configurations. I have many servers, and most have different firewall configurations. I am using classes to specify the firewall settings. I'm having difficulty when there is only one server in a class. For the classes containing lists of servers I de

Cfengine Help: Re: delete file .libs/ message

2010-12-17 Thread no-reply
Forum: Cfengine Help Subject: Re: delete file .libs/ message Author: bbomgardner Link to topic: https://cfengine.com/forum/read.php?3,19417,19834#msg-19834 For those interested (as I didn't know) to keep libpromises in /usr/local/lib, you can add the path to /etc/ld.so.conf: echo "/usr/local/li

Cfengine Help: Re: Strategy for parameter validation?

2010-12-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Strategy for parameter validation? Author: mark Link to topic: https://cfengine.com/forum/read.php?3,19826,19832#msg-19832 I believe there is already a bug report for this ___ Help-cfengine mailing list Help-cfengine@cf

Re: Cfengine Help: Strategy for parameter validation?

2010-12-17 Thread Mark Burgess
I believe there is already a bug report for this. On 12/17/2010 08:38 PM, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Strategy for parameter validation? > Author: jgreer > Link to topic: https://cfengine.com/forum/read.php?3,19826,19826#msg-19826 > > On multiple occasions, I'v

Cfengine Help: Re: Strategy for parameter validation?

2010-12-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Strategy for parameter validation? Author: jgreer Link to topic: https://cfengine.com/forum/read.php?3,19826,19831#msg-19831 Thanks, Neil. Do you know if there's an official policy about what types of errors cf-promises is intended to catch? -Jessica _

Cfengine Help: Re: delete file .libs/ message

2010-12-17 Thread no-reply
Forum: Cfengine Help Subject: Re: delete file .libs/ message Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19417,19830#msg-19830 This does seem to conflict with the desire to keep CF self contained. It is no use copying the binaries to /var/cfengine if the libraries ar

Cfengine Help: Re: Cfengine Help: Re: Once more unto the code bridge: repository

2010-12-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Once more unto the code bridge: repository Author: bbomgardner Link to topic: https://cfengine.com/forum/read.php?3,19824,19829#msg-19829 Thats good, Jesse. Let us know if you hear from him. I don't know if we need to have a consensus about ho

Cfengine Help: Re: delete file .libs/ message

2010-12-17 Thread no-reply
Forum: Cfengine Help Subject: Re: delete file .libs/ message Author: bbomgardner Link to topic: https://cfengine.com/forum/read.php?3,19417,19828#msg-19828 This was confusing for me too until I saw the note during the libtool process. (I usually never got to running make install either but inste

Cfengine Help: Re: Strategy for parameter validation?

2010-12-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Strategy for parameter validation? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19826,19827#msg-19827 I would view that as a bug. We want cf-promises to be as thorough as possible. ___ Help-

Cfengine Help: Strategy for parameter validation?

2010-12-17 Thread no-reply
Forum: Cfengine Help Subject: Strategy for parameter validation? Author: jgreer Link to topic: https://cfengine.com/forum/read.php?3,19826,19826#msg-19826 On multiple occasions, I've accidentally passed incorrect parameters to a body, bundle or function - either an incorrect number of parameters