summaryrefslogtreecommitdiffstats
path: root/cobbler/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/settings.py')
-rw-r--r--cobbler/settings.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/cobbler/settings.py b/cobbler/settings.py
index 3356bbd..f36b654 100644
--- a/cobbler/settings.py
+++ b/cobbler/settings.py
@@ -18,6 +18,9 @@ from rhpl.translate import _, N_, textdomain, utf8
TESTMODE = False
+# defaults is to be used if the config file doesn't contain the value
+# we need.
+
DEFAULTS = {
"bootloaders" : {
"standard" : "/usr/lib/syslinux/pxelinux.0",
@@ -116,3 +119,11 @@ class Settings(serializable.Serializable):
else:
raise AttributeError, name
+if __name__ == "__main__":
+ # used to save a settings file to /var/lib/cobbler/settings, for purposes of
+ # including a new updated settings file in the RPM without remembering how
+ # to format lots of YAML.
+ import yaml
+ print yaml.dump(DEFAULTS)
+
+