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
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"
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
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
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
> 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
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
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