diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-05-02 16:50:33 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-05-02 16:50:33 -0400 |
commit | 35fd760f0fc069906da78aebf4a1ecb3e2414291 (patch) | |
tree | c771737cbb5c9829ca946733ee29beb385ffee9a /cobbler/action_check.py | |
parent | 6ffd4eca30766153aa920888411f6437948757b2 (diff) | |
download | cobbler-35fd760f0fc069906da78aebf4a1ecb3e2414291.tar.gz cobbler-35fd760f0fc069906da78aebf4a1ecb3e2414291.tar.xz cobbler-35fd760f0fc069906da78aebf4a1ecb3e2414291.zip |
Added some check code for BIND.
Diffstat (limited to 'cobbler/action_check.py')
-rw-r--r-- | cobbler/action_check.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/cobbler/action_check.py b/cobbler/action_check.py index 2004c9f1..e81e66c1 100644 --- a/cobbler/action_check.py +++ b/cobbler/action_check.py @@ -51,8 +51,8 @@ class BootCheck: if self.settings.manage_dns: mode = self.config.api.get_sync().manager.what() if mode == "isc_and_bind": - #self.check_bind_bin(status) - #self.check_service(status,"dhcpd") + self.check_bind_bin(status) + self.check_service(status,"named") pass self.check_service(status, "cobblerd") @@ -118,14 +118,22 @@ class BootCheck: Check if dhcpd is installed """ if not os.path.exists(self.settings.dhcpd_bin): - status.append(_("dhcpd isn't installed, but is enabled in /var/lib/cobbler/settings")) + status.append(_("dhcpd isn't installed, but management is enabled in /var/lib/cobbler/settings")) def check_dnsmasq_bin(self,status): """ Check if dnsmasq is installed """ if not os.path.exists(self.settings.dnsmasq_bin): - status.append(_("dnsmasq isn't installed, but is enabled in /var/lib/cobbler/settings")) + status.append(_("dnsmasq isn't installed, but management is enabled in /var/lib/cobbler/settings")) + + def check_bind_bin(self,status): + """ + Check if bind is installed. + """ + if not os.path.exists(self.settings.bind_bin): + status.append(_("bind isn't installed, but management is enabled in /var/lib/cobbler/settings")) + def check_bootloaders(self,status): """ |