summaryrefslogtreecommitdiffstats
path: root/cobbler/action_check.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/action_check.py')
-rw-r--r--cobbler/action_check.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/cobbler/action_check.py b/cobbler/action_check.py
index 93988a3..f7bc9d9 100644
--- a/cobbler/action_check.py
+++ b/cobbler/action_check.py
@@ -55,6 +55,7 @@ class BootCheck:
self.check_tftpd_conf(status)
self.check_httpd(status)
self.check_iptables(status)
+ self.check_yum(status)
return status
@@ -70,6 +71,14 @@ class BootCheck:
if rc == 0:
status.append(_("since iptables may be running, ensure 69, 80, %(syslog)s, and %(xmlrpc)s are unblocked") % { "syslog" : self.settings.syslog_port, "xmlrpc" : self.settings.xmlrpc_port })
+ def check_yum(self,status):
+ if not os.path.exists("/usr/bin/createrepo"):
+ status.append(_("createrepo package is not installed, needed for cobbler import and cobbler reposync, install createrepo?"))
+ if not os.path.exists("/usr/bin/reposync"):
+ status.append(_("reposync is not installed, need for cobbler reposync, install/upgrade yum-utils?"))
+ if not os.path.exists("/usr/bin/yumdownloader"):
+ status.append(_("yumdownloader is not installed, needed for cobbler repo add with --rpm-list parameter, install/upgrade yum-utils?"))
+
def check_name(self,status):
"""
If the server name in the config file is still set to localhost