I'm wading back into cfengine after a bit of a break and I'm running into the same problems, hopefully one of the cfengine advocates out there will be able point me in the right direction.
A typical example is: I'm editing /etc/system on solaris, I want to ensure that this line is set : set shmsys:shminfo_shmmax=4294967296 I can use the 'AppendIfNoSuchLine' command and that'll work fine the first time around. My issue is, what happens the next time I want to change that line? I could switch to the 'ReplaceLineWith' command, but that won't add the line if it doesn't exist. Is there a sensible way around this? I'm guessing I might be missing something but a couple of dives through the refernce manual turned up naught. If anyone has a decent set of examples (or knows of a site with examples worthy of study), I'd be happy to do some more self-study. I googled for examples, got a lot of results but, like most things, quantity != quality. Since I'm rolling this out fresh, I'd like to get it right from the outset. Cheers greeno -- Tony Green <[EMAIL PROTECTED]> -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
