Re: Is 'select_line_matching' broken?

2010-03-30 Thread Steve Barnes
roken (appended to end of file) after line2 = OK before line3 = OK after line3 = OK before line4 = OK after line4 = OK before line5 = OK after line5 = OK Attached is the promise.cf and cron.cf file if anyone else feels like giving it a try. Cheers Steve > > Works ok for me > > Steve Bar

Re: Is 'select_line_matching' broken?

2010-03-30 Thread Steve Barnes
of CFEngine and what operating environment did you manage to get this working correctly in? Cheers Steve > > Works ok for me > > Steve Barnes wrote: >> I'm trying to disable a few cron tasks by inserting an `exit 0` >> statement >> just after the shebang: >&

Re: iteration problem with execresult string assignment

2010-03-30 Thread Steve Barnes
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

Is 'select_line_matching' broken?

2010-03-18 Thread Steve Barnes
Sorry, forgot to mention I'm using CF3.0.3 Cheers Steve ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Is 'select_line_matching' broken?

2010-03-18 Thread Steve Barnes
I'm trying to disable a few cron tasks by inserting an `exit 0` statement just after the shebang: ### bundle agent cron { files: "/etc/cron.daily/mlocate.cron" edit_line => disable_task;

Odd behaviour in 3.0.4 with set_variable_values

2010-03-08 Thread Steve Barnes
Hi List I'm seeing some confusing behaviour in 3.0.4 that wasn't occurring in 3.0.3. Consider the following 2 bundles, designed to populate 2 independent files with 2 fields of the form = : (note: target files are blanked before each test run.) bundle agent write_fileA { va

Re: Cfengine 2.2.10 download with Commandline wget!

2010-03-08 Thread Steve Barnes
osuosl.org|140.211.166.142|:80... connected. > HTTP request sent, awaiting response... 403 Forbidden > 2010-03-08 12:32:19 ERROR 403: Forbidden. > Cheers, > -Jan Muhammad > --- On > Mon, 8/3/10, Steve Barnes > > wrote: > From: Steve Barnes > Subject: Re: Cfengine 2.2.10 dow

Re: Cfengine 2.2.10 download with Commandline wget!

2010-03-08 Thread Steve Barnes
The first link you provided to 2.2.8 is confirmed as 404 however, I'm able to download from both of the below links without problem? http://www.cfengine.org/tarballs/cfengine-2.2.8.tar.gz http://www.cfengine.org/tarballs/cfengine-2.2.10.tar.gz 3b90ff8bf2ec941cd33cfb65f5012f16 cfengine-2.2.10.tar

Re: Is it possible to make sure /etc/fstab mount points stay mounted with cfengine?

2010-03-07 Thread Steve Barnes
-num values for /etc/fstab. Perhaps I misunderstood the original question posted by Sean whom infact was asking about NFS management capabilities within CFEngine3? Thank you Steve > > Steve, > > not to belittle your efforts, but you should definitely use storage > promises to

Re: Is it possible to make sure /etc/fstab mount points stay mounted with cfengine?

2010-03-07 Thread Steve Barnes
Mark I guess I have to experience the rough to appreciate the smooth! Thanks for pointing out storage options, I'll update my configs to use them. Steve > > Steve, > > not to belittle your efforts, but you should definitely use storage > promises to simplify this. > >

Re: Is it possible to make sure /etc/fstab mount points stay mounted with cfengine?

2010-03-06 Thread Steve Barnes
Sean Here's a little something I finally got working at 2am last night. It ensures an slist of specific mount points always have the noatime flag (purely data folders in my case). If changes are made to the /etc/fstab file, a remount of the affected partitions is performed. Hopefully this can pro

Indexing an array of slist?

2010-03-04 Thread Steve Barnes
Hi Apologies if I'm a bit late to the party on this subject, but how do you reference a specific sub-element of an slist that is a value part of an associative array? So far all the doco I've read is a bit light on more "advanced" uses of arrays. For example, I have the following var defined: