slist inside array

2012-10-04 Thread dennis . cabooter
Hi all, The slist I put into the array doesn't expand. Can anybody tell me how to get this right? Please review the code below. Many thanks in advance. bundle agent manage_services { vars: "services[ntp][service]" string => "ntp"; "services[ntp][config]" string => "/etc/ntp.co

set_user_field multiple lines

2011-03-11 Thread Dennis . Cabooter
Hi all, I wonder how to edit the same (group) file in once.. If I do this: -- bundle agent my_main { vars: "groups" slist => { "group1", "group2" }; "group_lines" slist => { "user1,user2,user3", "user4,user5" }; files: "/tmp/group"

Re: replace_patterns issue

2011-02-15 Thread Dennis . Cabooter
Nice one! Works like a charm. Still don't know what went wrong with my example, but thanks, I will use yours. :-) > On 15 feb 2011, at 09:50, dennis.caboo...@snow.nl wrote: > >> Hi there! >> >> I have a replace_patterns issue. >> >> - In /tmp/group I have the following: >> >> root@cfengine:~# gre

replace_patterns issue

2011-02-15 Thread Dennis . Cabooter
Hi there! I have a replace_patterns issue. - In /tmp/group I have the following: root@cfengine:~# grep zenoss /tmp/group zenoss:x:1001: - I have the following cfengine code: -- body common control { bundlesequence => { "test" }; } bundle agent test { files: "/tmp/group11

Re: Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread Dennis . Cabooter
I my opinion I prefer the BSD method. For example OS binaries are in /bin or /sbin, OS configs in /etc, OS startup-scripts in /etc/rc.d. Third party stuff gets the /usr/local prefix, so it becomes /usr/local/bin, /usr/local/etc and /usr/local/etc/rc.d. I try to use this nice and clean practice on L

Re: Cfengine Help: Cfengine client setup howto

2011-02-04 Thread Dennis . Cabooter
> The documentation is indeed confusing and the example starter code > provided is pain wrong because the mycopy() body lacks a servers clause so > it doesn't even try to copy from a server. The example code in the docs is talking about @(some_list) while $(some_list) is the correct (or at least w

Re: insert_lines locator doesn't work

2011-02-04 Thread Dennis . Cabooter
The problem still exists in 3.1.4-1. The line will append at the end of the file instead of using the locator. :-( > I've had this exact problem and do not know how to fix it. It has caused > me > to stop using file editing all together and even templates. Since any > file > that has sections ca

insert_lines locator doesn't work

2011-01-11 Thread Dennis . Cabooter
The following syntax should work, according to documentation and examples: -- body common control { bundlesequence => { "test" }; } bundle agent test { files: "/tmp/yum.conf" edit_line => append_after_main; } bundle edit_line append_after_main { insert_lines: "Please