Rossberry.comHome of the Mobile Linux Lab |
| Home | Overview | Philosophy | Infrastructure |
| Version Control | Blogs | Files | cfengine |
Whenever I think of cfengine, I think of the line from Neal Stephenson's "Unix - Hole Hawg"
"Unix has always lurked provocatively in the background of the operating system wars, like the Russian Army. Most people know it only by reputation, and its reputation, as the Dilbert cartoon suggests, is mixed. But everyone seems to agree that if it could only get its act together and stop surrendering vast tracts of rich agricultural land and hundreds of thousands of prisoners of war to the onrushing invaders, it could stomp them (and all other opposition) flat. "
It is impossible to have a discussion about configuration management among Unix admins without someone mentioning that "so and so uses it" or "I've seen it". People who have set it up from scratch are extremely rare. There's a reason for that...it aint easy.
Cfengine's goal is the convergence of systems to a standard. Essentially this means that the practice of individual admins editing config files on servers is NEVER DONE. Think about that. No, really, think about it. Do you understand your infrastructure well enough to describe it, classifying every machine and function accurately? Accurately enough to let a program control them? Yeah, thought so.
gulp
So here we go with a simple cfengine setup. Our goal is to
After that, the rest is gravy. Amazingly enough, I can not find a tutorial that tells you how to do that. They usually fall apart at the "distribute a trivial file" step and diverge into the wonders and glories of cfengine's promise language, or syntax, or something.
I wrote everything above this header on Oct 25. It is now April. So what have I been doing (besides Thanksgiving, etc)....trying to get my head around how it works in 20 minute segments. Some things I think I know now
The 'master' server is both a master and a client (of itself and probably of whatever you are storing the real configs in). It has 3 cfengine daemons running on it
I've created rpms that will install the mentioned files and run an initial update. They are described here
| Contact mll@rossberry.com |
Copyright
© 2010, 2011 Jim Wildman.
All rights reserved. |