summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-06-25 14:58:20 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-06-25 14:58:20 -0400
commit1e7b1b8ba5a982ca801a4d8246934a2315dd5931 (patch)
treeeb9138807fdb1b68143ac7bcf89828b2e8c3d003 /cobbler
parent449e841102ab32c88c3559b92069ba648bd61a8d (diff)
downloadthird_party-cobbler-1e7b1b8ba5a982ca801a4d8246934a2315dd5931.tar.gz
third_party-cobbler-1e7b1b8ba5a982ca801a4d8246934a2315dd5931.tar.xz
third_party-cobbler-1e7b1b8ba5a982ca801a4d8246934a2315dd5931.zip
Remove references to manage_dhcp_mode and manage_dns_mode as this is governed by modules.conf, and rewrite the restart-services trigger to understand restart_dhcp and restart_dns variables, which are now mentioned in the settings file. Also, clean up the tests so they work more nicely on F9, and remove some unused lines from the Makefile.
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/modules/manage_bind.py2
-rw-r--r--cobbler/modules/manage_isc.py3
-rw-r--r--cobbler/pxegen.py7
-rw-r--r--cobbler/settings.py3
4 files changed, 10 insertions, 5 deletions
diff --git a/cobbler/modules/manage_bind.py b/cobbler/modules/manage_bind.py
index 339fbf0..d88c87c 100644
--- a/cobbler/modules/manage_bind.py
+++ b/cobbler/modules/manage_bind.py
@@ -49,7 +49,7 @@ def register():
class BindManager:
def what(self):
- return "isc_and_bind"
+ return "bind"
def __init__(self,config,verbose=False):
"""
diff --git a/cobbler/modules/manage_isc.py b/cobbler/modules/manage_isc.py
index c398270..5e4fbf6 100644
--- a/cobbler/modules/manage_isc.py
+++ b/cobbler/modules/manage_isc.py
@@ -48,7 +48,7 @@ def register():
class IscManager:
def what(self):
- return "isc_and_bind"
+ return "isc"
def __init__(self,config,verbose=False):
"""
@@ -130,7 +130,6 @@ class IscManager:
settings_file = self.settings.dhcpd_conf
template_file = "/etc/cobbler/dhcp.template"
- mode = self.settings.manage_dhcp_mode.lower()
try:
f2 = open(template_file,"r")
diff --git a/cobbler/pxegen.py b/cobbler/pxegen.py
index 94bdb2a..048e7ad 100644
--- a/cobbler/pxegen.py
+++ b/cobbler/pxegen.py
@@ -127,11 +127,14 @@ class PXEGen:
f1 = utils.get_config_filename(system,interface=name)
+ if distro.arch is None or distro.arch == "":
+ distro.arch = "x86"
+
# for tftp only ...
if distro.arch in [ "i386", "x86", "x86_64", "standard"]:
# pxelinux wants a file named $name under pxelinux.cfg
f2 = os.path.join(self.bootloc, "pxelinux.cfg", f1)
- if distro.arch == "ia64":
+ elif distro.arch == "ia64":
# elilo expects files to be named "$name.conf" in the root
# and can not do files based on the MAC address
if ip is not None and ip != "":
@@ -139,6 +142,8 @@ class PXEGen:
filename = "%s.conf" % utils.get_config_filename(system,interface=name)
f2 = os.path.join(self.bootloc, filename)
+ else:
+ raise CX(_("Invalid arch %s, cobbler is confused") % distro.arch)
f3 = os.path.join(self.settings.webdir, "systems", f1)
diff --git a/cobbler/settings.py b/cobbler/settings.py
index 4670ab0..bd5b0d3 100644
--- a/cobbler/settings.py
+++ b/cobbler/settings.py
@@ -58,7 +58,6 @@ DEFAULTS = {
"ksdevice" : "eth0"
},
"manage_dhcp" : 0,
- "manage_dhcp_mode" : "isc",
"manage_dns" : 0,
"manage_forward_zones" : [],
"manage_reverse_zones" : [],
@@ -69,6 +68,8 @@ DEFAULTS = {
"omshell_bin" : "/usr/bin/omshell",
"pxe_just_once" : 0,
"register_new_installs" : 0,
+ "restart_dns" : 1,
+ "restart_dhcp" : 1,
"run_install_triggers" : 1,
"server" : "127.0.0.1",
"snippetsdir" : "/var/lib/cobbler/snippets",