On Sun, Apr 1, 2012 at 20:49, James Cammarata <jimi(a)sngx.net> wrote:
https://github.com/jimi1283/cobbler/tree/dynamicsettings
commit 862e3f583efc6055e5a605a60ee29298a968e53b
Author: James Cammarata <jimi(a)sngx.net>
Date: Sun Apr 1 20:29:51 2012 -0500
Initial support for modifying settings live
Changed settings do not survive a reboot and revert to what's in
/etc/cobbler/settings
TODO:
* report --name show a single setting
* validate settings based on type (string, list, bool, etc.)
* web support for editing
* persisting settings after change
Obviously, a lot still todo, but I think this is something that's been
long overdue. I haven't quite figured out the best way to save
settings without mangling the /etc/cobbler/settings file, but I'm
leaning towards a template to preserve the existing format with all
the comments. Any other suggestions are welcome.
I would see if you can accomplish what you want using augeas... it
already has lenses for cobbler's settings file.
-greg