This might work (now downloading rhel6.5 so i can test):
diff --git a/cobbler/action_check.py b/cobbler/action_check.py
index 5ab10b4..5feadc5 100644
--- a/cobbler/action_check.py
+++ b/cobbler/action_check.py
@@ -28,6 +28,7 @@ import utils
import glob
from utils import _
import clogger
+import re
class BootCheck:
@@ -54,7 +55,7 @@ class BootCheck:
self.check_selinux(status)
if self.settings.manage_dhcp:
mode = self.config.api.get_sync().dhcp.what()
- if mode == "isc":
+ if mode == "isc":
self.check_dhcpd_bin(status)
self.check_dhcpd_conf(status)
self.check_service(status,"dhcpd")
@@ -72,7 +73,7 @@ class BootCheck:
self.check_service(status,"dnsmasq")
mode = self.config.api.get_sync().tftpd.what()
- if mode == "in_tftpd":
+ if mode == "in_tftpd":
self.check_tftpd_bin(status)
self.check_tftpd_dir(status)
self.check_tftpd_conf(status)
@@ -82,7 +83,7 @@ class BootCheck:
self.check_ctftpd_conf(status)
self.check_service(status, "cobblerd")
-
+
self.check_bootloaders(status)
self.check_for_wget_curl(status)
self.check_rsync_conf(status)
@@ -117,7 +118,7 @@ class BootCheck:
if notes != "":
notes = " (NOTE: %s)" % notes
rc = 0
- if self.checked_dist in ("redhat","fedora","centos","scientific linux","suse"):
+ if re.match("red ?hat|fedora|centos|scientific linux", self.checked_dist):
if os.path.exists("/etc/rc.d/init.d/%s" % which):
rc = utils.subprocess_call(self.logger,"/sbin/service %s status > /dev/null 2>/dev/null" % which, shell=True)
if rc != 0:--On Wed, Jul 16, 2014 at 2:11 PM, Jörgen Maas <jorgen.maas@gmail.com> wrote:
Can you send output for:
[jorgen@mainframe ~]$ python
Python 2.7.5 (default, Jun 25 2014, 10:19:55)
[GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.linux_distribution()[0].lower().strip()ANDI dont have a rhel 6.5 box around atm...
[jorgen@mainframe ~]$ python
Python 2.7.5 (default, Jun 25 2014, 10:19:55)
[GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.dist()[0].lower().strip()On Wed, Jul 16, 2014 at 1:05 PM, Newman, Stuart J. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC] <stuart.j.newman@nasa.gov> wrote:
Cobbler 2.6.1 RHEL 6.5
When running cobbler check, I get
[root@fiat ~]# cobbler check
The following are potential configuration items that you may want to fix:
1 : SELinux is enabled. Please review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:
https://github.com/cobbler/cobbler/wiki/Selinux
2 : Unknown distribution type, cannot check for running service dhcpd
3 : Unknown distribution type, cannot check for running service cobblerd
4 : Apache (httpd) is not installed and/or in path
5 : debmirror package is not installed, it will be required to manage debian deployments and repositories
6 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them
Restart cobblerd and then run 'cobbler sync' to apply changes.
I do not understand messages 2 and 3.
See attached files for more info.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stuart J. Newman
Engineer 4; SystemsSolar Dynamics Observatory (SDO)
Honeywell Technology Solutions Inc
NASA/Goddard Space Flight Center
Building 14, Room E222
Mail Stop 428.2
Greenbelt, MD 20771
Office: (301) 286-5145
Mobile: (443) 878-0280
E-Mail: Stuart.J.Newman@nasa.gov
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE: This communication, including any attachment, contains information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed. If you are not the intended recipient, please notify the sender at once, and you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message is strictly prohibited. Nothing in this email, including any attachment, is intended to be a legally binding signature.
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler
--
Grtz,
Jörgen Maas
Grtz,
Jörgen Maas