Forum: Cfengine Help
Subject: Re: Is 'select_line_matching' broken?
Author: SteveBarnes
Link to topic: https://cfengine.com/forum/read.php?3,16197,16726#msg-16726
Uhm...not sure how my last post ended up in this thread...it was sent via the
mailing list :s
___
Update: performed some simple testing on a basic text file containing the
following 5 entries:
line1
line2
line3
line4
line5
Running with CF3.0.4p2 on CentOS 5.4 x64, this is the behaviour I'm getting:
before line1 = OK
after line1 = Broken (appended to end of file)
before line2 = Broken (append
I'm still struggling to get the expected behaviour from the below bundle.
What's odd is if I match for the "nodevs" line in mlocate.cron, specifying
"after" for the "before_after" field, I get the exit 0 statement inserted
in the correct location. If I change "before_after" to "before", I get the
Hello everyone,
I'll be doing a presentation on cfengine at the Linux Open
Administration Days, in Antwerp : http://www.loadays.org/schedule
Saturday will be an interesting day for anyone into configuration
management :
- Landscape
- Chef
- PuppetManaged
- CFengine
all in the same day
And a co
Forum: Cfengine Help
Subject: Re: iteration problem with execresult string assignment
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,16717,16721#msg-16721
Perhaps you need to set the policy of the status string to allow it to be
redefined for each list item.
___
Forum: Cfengine Help
Subject: Re: iteration problem with execresult string assignment
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,16717,16720#msg-16720
Neil,
The bundle is intended to be used as
methods:
"any" usebundle => system_startup("$(services_list)");
Forum: Cfengine Help
Subject: Re: iteration problem with execresult string assignment
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,16717,16718#msg-16718
What problems do you mean? Please give us you expected and actual results.
Not sure what you mean by "iteration problems", but here's something
similar that I use to ensure only a specific list of services are enabled
for runlevel 3 in CentOS.
HTH
Steve
--
bundle agent chkconfig {
vars:
# This is all that should be enabled at
Hello guys,
The following bundle cause iteration problems. Could anybody advise
how to rewrite it to omit them?
bundle agent system_startup(service)
{
vars:
centos::
"status"string => execresult("/sbin/chkconfig --list