> On Sun, Apr 1, 2012 at 22:36, Greg Swift <gregsw...@gmail.com> wrote: >> Kewl. Fyi python-augeas won't be in stable EPEL till sometime next week, >> but its in updates-testing now. >> >> On Apr 1, 2012 9:54 PM, "James Cammarata" <j...@sngx.net> wrote: >>> >>> > I would see if you can accomplish what you want using augeas... it >>> > already has lenses for cobbler's settings file. >>> >>> I hadn't considered augeas, I usually associate that with ruby and >>> puppet only. I added a commit to that branch that now writes settings >>> via python-augeas.
https://github.com/jimi1283/cobbler/commit/a3983bf249bb3080106addd4bf4b250b2b367001 commit a3983bf249bb3080106addd4bf4b250b2b367001 Author: James Cammarata <j...@sngx.net> Date: Tue Apr 3 03:12:10 2012 -0500 Dynamic settings edit support for the web GUI Next up is adding support to determine if a setting is a string, boolean, list, etc. with appropriate editing option for the web GUI (combo box, multi-select, whatever). Also, need to disallow editing of the "server" variable dynamically - it breaks things quite quickly. CLI options I'm considering adding too: --no-persist: don't rewrite the settings file. Might be useful for testing changes you don't want to save so a cobblerd restart restores things to the way they were. --sync: force a full sync after the setting is changed. _______________________________________________ cobbler-devel mailing list cobbler-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler-devel