This afternoon I started looking at
cfengine. In very little time, I've already set up rules that can bring a system from pretty much cdebootstrap state up to a minimal production system in our environment. I've still got a little ways to go, but it's already hacking on /etc/hosts, hosts.deny, sources.list, installing appropriate Debian packages for our systems, etc.
It's come a long way since I last looked at it six years ago.
One thing I can't figure out...
I have a /etc/bacula/bacula-fd.conf file that contains, among other things, this:
Director {
Name = backup-dir
Password = "foo"
}
Director {
Name = backup-mon
Password = "bar"
Monitor = yes
}
I can't figure out how to make cfengine delete just that second section. I tried this:
BeginGroupIfLineMatching " name = .+-mon"
IncrementPointer "-1"
DeleteToLineMatching "\}"
DeleteNLines "1"
EndGroup
But it seems that the pointer is never actually being decremented, even when examined under verbose mode. That is, it leaves the leading "Director {" line in the file.
Comments
Fri, 09.05.2008 15:51
We use Accurev here at work, s o let me try that. Well, I do know that several airlines actually use Accurev and [...]
Thu, 08.05.2008 16:34
Continuus Airlines: This a irline started as a skunk-work s project in Sweden that was s old as a "sort of versio [...]
Wed, 07.05.2008 07:43
Just a small update: The re dmine forums have been moved t o redmine.org 4 days after you r post: http://rubyfo [...]
Mon, 05.05.2008 14:49
What the hell are you guys tal king about? Is it really that bad? Can't programmers google anymore? Swap Caps and E [...]
Sun, 04.05.2008 11:57
I use the Google Browser Sync firefox extension on all 3 of my computers. It syncs everyth ing: bookmarks, cookies, [...]
Sun, 04.05.2008 09:32
I've been thinking about setti ng up an ikiwiki site to hand le my bookmarks. I'm currentl y using a wiki page on [...]
Sun, 04.05.2008 07:53
I guess what I would say is th at PDF *can* faithfully reprod uce documents, but doesn't gua rantee that it always wi [...]
Sun, 04.05.2008 07:51
I agree with you; I have some file:/// URLs bookmarked. T he del.icio.us has a syncing a lgorithm, and I have fou [...]