diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2006-04-05 11:59:27 -0400 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-04-05 11:59:27 -0400 |
commit | 5b0f54d5674a1b47c112342994b6f0bae6172809 (patch) | |
tree | 30f90a213ccdaf6881525d027b1b587393c956bd /check.py | |
parent | 975fc8a2d6183345061b20988f160df3bed60dd2 (diff) | |
download | third_party-cobbler-5b0f54d5674a1b47c112342994b6f0bae6172809.tar.gz third_party-cobbler-5b0f54d5674a1b47c112342994b6f0bae6172809.tar.xz third_party-cobbler-5b0f54d5674a1b47c112342994b6f0bae6172809.zip |
Added dry-run support. Pre-refactoring cleanup. Moved config file to /etc.
Diffstat (limited to 'check.py')
-rw-r--r-- | check.py | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -32,22 +32,38 @@ class BootCheck: self.check_dhcpd_conf(status) return status + """ + Check if dhcpd is installed + """ def check_dhcpd_bin(self,status): if not os.path.exists(self.config.dhcpd_bin): status.append(m("no_dhcpd")) + """ + Check if pxelinux (part of syslinux) is installed + """ def check_pxelinux_bin(self,status): if not os.path.exists(self.config.pxelinux): status.append(m("no_pxelinux")) + """ + Check if tftpd is installed + """ def check_tftpd_bin(self,status): if not os.path.exists(self.config.tftpd_bin): status.append(m("no_tftpd")) + """ + Check if bootconf.conf's tftpboot directory exists + """ def check_tftpd_dir(self,status): if not os.path.exists(self.config.tftpboot): status.append(m("no_dir") % self.config.tftpboot) + """ + Check that bootconf tftpd boot directory matches with tftpd directory + Check that tftpd is enabled to autostart + """ def check_tftpd_conf(self,status): if os.path.exists(self.config.tftpd_conf): f = open(self.config.tftpd_conf) @@ -66,6 +82,10 @@ class BootCheck: else: status.append(m("no_exist") % self.tftpd_conf) + """ + Check that dhcpd *appears* to be configured for pxe booting. + We can't assure file correctness + """ def check_dhcpd_conf(self,status): if os.path.exists(self.config.dhcpd_conf): match_next = False @@ -86,3 +106,5 @@ class BootCheck: status.append(m("no_dir2") % (self.config.kernel_root, 'kernel_root')) if not os.path.exists(self.config.kickstart_root): status.append(m("no_dir2") % (self.config.kickstart_root, 'kickstart_root')) + + |