3

I work with a cfengine installation that has grown organically and become quite complicated. Some stanzas use many classes, e.g., class1&(class2|class3)&!class4|class5

Is there some tool that would take a cfengine config and simplify it, similar to the simplification of logic circuits with boolean algebra?

Failing that, are there any tools for analyzing cfengine configurations? E.g., a class and object visualization tool might be helpful.

ewwhite
  • 194,921
  • 91
  • 434
  • 799
Mark Wagner
  • 17,764
  • 2
  • 30
  • 47
  • 1
    Depending on how entrenched cfengine is at your place, you might want to consider Puppet, Chef, or another configuration management system. – Mike Renfro May 14 '11 at 01:26

3 Answers3

5

There's a new configuration management tool based on CFEngine that automates all the configurations. In a Web Interface, you define and parametrize the Directives you wish to see applied to group of nodes, and automagically, it generates CFEngine promises for these nodes.

Then the cf-agent running nodes will fetch these promises, apply them, and send back reports to the web interface.

You can find this tool, Rudder, here : http://www.rudder-project.org/

Disclaimer : I'm one of the developer of this tool

Nicolas Charles
  • 725
  • 5
  • 11
1

Nova, the commercial version of Cfengine, would help you analyse cfengine configuration, links between objects, files, etc.

However I do not know any tools that would help you simplify your cfengine configuration. A first step could be change your inputs/bundlesequence based on the host classes.

Or you could split your configurations files, having one set for some servers, another set for other servers, etc, but you'll have to maintain each of these sets of config files ...

Nicolas Charles
  • 725
  • 5
  • 11
1

Try the evolve thinking free promise library. It separates data from common promises. Making changes usually involves only editing a CSV file.

http://evolvethinking.com/evolve-thinkings-free-cfengine-library/

Neil H Watson
  • 450
  • 1
  • 5
  • 17
  • Whilst this may theoretically answer the question, [it would be preferable](http://meta.stackexchange.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. – slm Aug 16 '13 at 20:10