Lightweight configuration management toolkit which you write in python
Project description
cifit is a lightweight configuration management toolkit, it patterns itself off of cfengine
a little bit (it has classes), borrows from bcfg2, but the language to manage your
configurations is python.
BUILD:
You need mercurial, setuptools, and python of course.
You also need hgdistver:
https://bitbucket.org/RonnyPfannschmidt/hgdistver/overview
Currently cifit only is tested against OSX (partly) and Debian & Ubuntu (systems with apt installed). Everything here should work or be extensible against any posix compliant box you can get python on. it *could* be made to work on windows, patches accepted.
see docs/ for documentation.
see examples/ for a few rudimentary examples.
The idea behind this code is that you write a config file (.cft) that is in python, but you only run the code thru cifit.
Doing this gives you a bunch of built-ins that make managing systems easier.
Normally I run cifit from crontab every 5 minutes.
You should put your configs in a Version Control system (say subversion or git) then it's also easy to update configs:
cifit automatically puts the current directory to the basename of the .cft file that cifit runs, so to do a svn update:
files.run('svn update')
it's easy to manage your system or pear or python packages:
packages = ['apache2','ssh','php5']
for p in packages:
pkg.installPackage(p)
it's easy to change or update your files: (on multiple runs it will NOT append it twice).
files.append('/etc/issue',['This system is managed by cifit'])
It's easy to use sed like replacements on a file.
for example to turn magic_quotes off:
files.sub("/etc/php5/apache2/php.ini",["/magic_quotes_gpc = On/magic_quotes_gpc = Off/"])
It's easy to keep apache running:
if not procs.checkService('apache2'):
procs.startService('apache2')
Why yet another Configuration Management Engine?
I love python. I hate XML, I love the ideas behind cfengine, but I can't
understand the magic behind it to actually do something useful. I understand python, so I write my configs in python.
a little bit (it has classes), borrows from bcfg2, but the language to manage your
configurations is python.
BUILD:
You need mercurial, setuptools, and python of course.
You also need hgdistver:
https://bitbucket.org/RonnyPfannschmidt/hgdistver/overview
Currently cifit only is tested against OSX (partly) and Debian & Ubuntu (systems with apt installed). Everything here should work or be extensible against any posix compliant box you can get python on. it *could* be made to work on windows, patches accepted.
see docs/ for documentation.
see examples/ for a few rudimentary examples.
The idea behind this code is that you write a config file (.cft) that is in python, but you only run the code thru cifit.
Doing this gives you a bunch of built-ins that make managing systems easier.
Normally I run cifit from crontab every 5 minutes.
You should put your configs in a Version Control system (say subversion or git) then it's also easy to update configs:
cifit automatically puts the current directory to the basename of the .cft file that cifit runs, so to do a svn update:
files.run('svn update')
it's easy to manage your system or pear or python packages:
packages = ['apache2','ssh','php5']
for p in packages:
pkg.installPackage(p)
it's easy to change or update your files: (on multiple runs it will NOT append it twice).
files.append('/etc/issue',['This system is managed by cifit'])
It's easy to use sed like replacements on a file.
for example to turn magic_quotes off:
files.sub("/etc/php5/apache2/php.ini",["/magic_quotes_gpc = On/magic_quotes_gpc = Off/"])
It's easy to keep apache running:
if not procs.checkService('apache2'):
procs.startService('apache2')
Why yet another Configuration Management Engine?
I love python. I hate XML, I love the ideas behind cfengine, but I can't
understand the magic behind it to actually do something useful. I understand python, so I write my configs in python.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cifit-0.4.post3-f1f5f604f2f0-20110127.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff9cf73f8aeb54d8a5ac65c735554b05ddc2c303fa04ad968c9b4419d2318566 |
|
MD5 | 5b90aa3e70b76628e525feb33e1ae6f8 |
|
BLAKE2b-256 | 3fff6fc657622a355415a813a310d11bb527a389447b53fb14831e97dcfe2ebe |
Close
Hashes for cifit-0.4.post3_f1f5f604f2f0_20110127-py2.5.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aaeabf4fabe81bf5acdc7c46f0a848a1eb2820e4eca7dae1321b7144341c0f0 |
|
MD5 | ac071910ed1289634ef8444b41f594a7 |
|
BLAKE2b-256 | 46e01778e1505c8ef0510124a63eaaea4c87eb1bdcc64e07be81b37d89f98426 |