CFEngine Help: Re: CFEngine Help: edit_template array variable expansion

2012-05-24 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: edit_template array variable expansion Author: Angelinas Link to topic: https://cfengine.com/forum/read.php?3,26062,26066#msg-26066 it strips anything between square brackets in messages sent to the mailing list. ___

CFEngine Help: Re: CFEngine Help: edit_template array variable expansion

2012-05-24 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: edit_template array variable expansion Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,26062,26065#msg-26065 This is a known bug in the "forum to mailing list" component, it strips anything between square brackets in messages

Re: CFEngine Help: Re: CFEngine Help: edit_template array variable expansion

2012-05-24 Thread Neil Watson
Sorry, the webforum to mailing list software corrupted the message. I see the same thing you do. Let me think about it. -- Neil Watson Linux/UNIX Consultant http://watson-wilson.ca ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfen

CFEngine Help: Re: CFEngine Help: edit_template array variable expansion

2012-05-24 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: edit_template array variable expansion Author: jremond Link to topic: https://cfengine.com/forum/read.php?3,26062,26063#msg-26063 I do not know why name[ srv1 ] (without blank) becomes name in your message. _

Re: CFEngine Help: edit_template array variable expansion

2012-05-24 Thread Neil Watson
>Forum: CFEngine Help >Subject: edit_template array variable expansion >Author: jremond > any:: >"name" string => "srv1"; >"name"string => "srv2"; > >"ip" string => "192.168.0.1"; >"mac"string => "52:54:00:00:00:00"; > >"ip" string => "192.168.0.

CFEngine Help: edit_template array variable expansion

2012-05-24 Thread no-reply
Forum: CFEngine Help Subject: edit_template array variable expansion Author: jremond Link to topic: https://cfengine.com/forum/read.php?3,26061,26061#msg-26061 Hi all I am trying to use the new template feature and but I get some unwanted substitution bundle agent dhcp { vars: any:: "n

CFEngine Help: Re: Read files once instead of a bunch?

2012-05-24 Thread no-reply
Forum: CFEngine Help Subject: Re: Read files once instead of a bunch? Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,26052,26060#msg-26060 Another idea, particularly if the file is *really* large, would be to use persistent classes. What you'd need is to define an additiona

Re: CFEngine Help: Re: Cfengine 3.3 wins!

2012-05-24 Thread Neil Watson
On Thu, May 24, 2012 at 06:19:39PM +0200, no-re...@cfengine.com wrote: >Author: sauer > >My workaround's just to have CFEngine run an svn update.rather than >directly copying the directory. That really makes more sense anyway, >as my next step is to essentially stick a backgrounded cf-runagent >co

Matching a "parametric" regex

2012-05-24 Thread Marco Marongiu
Hi all I am trying to check for some records in the /etc/hosts file. More specifically, I want that: 1) There must be only one line matching "^$(sys.ipv4)\s+$(fqhost)\s+$(uqhost)\b.*$" I don't care if other names are added after the two canonical ones, in that order. 2) If there are other lines

CFEngine Help: Re: Cfengine 3.3 wins!

2012-05-24 Thread no-reply
Forum: CFEngine Help Subject: Re: Cfengine 3.3 wins! Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,25626,26057#msg-26057 My workaround's just to have CFEngine run an svn update.rather than directly copying the directory. That really makes more sense anyway, as my next step i

CFEngine Help: Re: Read files once instead of a bunch?

2012-05-24 Thread no-reply
Forum: CFEngine Help Subject: Re: Read files once instead of a bunch? Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,26052,26056#msg-26056 You're right - I had the negation in my actual code, but missed a character when copying 'n pasting. :) I used if_ok in mine since that i

Re: templates: regression in 3.3.x?

2012-05-24 Thread Marco Marongiu
On 23/05/2012 14:14, Marco Marongiu wrote: > duplicated lines in templates must *not* be suppressed. re-read the docs: it looks like I need to use BEGIN/END blocks for that. I overlooked it since it seemed to be related to list expansion only. I'll check if it does what I mean. -- M _

Re: CFEngine Help: Re: Cfengine 3.3 wins!

2012-05-24 Thread Mikhail Gusarov
On 05/23/2012 09:50 PM, no-re...@cfengine.com wrote: > So I have nowhere near that many objects. I remember talking to Diego and > Eynstein saying while they were visiting LinkedIn that large amounts of small > files is a lot more work for cf-serverd than a few large ones. > A MD5 sum has to be