8eb28c
From 99efecaf87dc1fc9517efaff441a6a7ce46444eb Mon Sep 17 00:00:00 2001
8eb28c
From: Jim Perrin <jperrin@centos.org>
8eb28c
Date: Wed, 11 Mar 2015 10:37:03 -0500
8eb28c
Subject: [PATCH] update for new ntp server method
8eb28c
8eb28c
---
8eb28c
 ipaplatform/base/paths.py        | 1 +
8eb28c
 ipaserver/install/ntpinstance.py | 2 ++
8eb28c
 2 files changed, 3 insertions(+)
8eb28c
8eb28c
diff --git a/ipaplatform/base/paths.py b/ipaplatform/base/paths.py
8eb28c
index af50262..5090062 100644
8eb28c
--- a/ipaplatform/base/paths.py
8eb28c
+++ b/ipaplatform/base/paths.py
8eb28c
@@ -99,6 +99,7 @@ class BasePathNamespace(object):
8eb28c
     PKI_TOMCAT_ALIAS_DIR = "/etc/pki/pki-tomcat/alias/"
8eb28c
     PKI_TOMCAT_PASSWORD_CONF = "/etc/pki/pki-tomcat/password.conf"
8eb28c
     ETC_REDHAT_RELEASE = "/etc/redhat-release"
8eb28c
+    ETC_CENTOS_RELEASE = "/etc/centos-release"
8eb28c
     RESOLV_CONF = "/etc/resolv.conf"
8eb28c
     SAMBA_KEYTAB = "/etc/samba/samba.keytab"
8eb28c
     SMB_CONF = "/etc/samba/smb.conf"
8eb28c
diff --git a/ipaserver/install/ntpinstance.py b/ipaserver/install/ntpinstance.py
8eb28c
index c653525..4b0578b 100644
8eb28c
--- a/ipaserver/install/ntpinstance.py
8eb28c
+++ b/ipaserver/install/ntpinstance.py
8eb28c
@@ -44,6 +44,8 @@ class NTPInstance(service.Service):
8eb28c
         os = ""
8eb28c
         if ipautil.file_exists(paths.ETC_FEDORA_RELEASE):
8eb28c
             os = "fedora"
8eb28c
+        elif ipautil.file_exists(paths.ETC_CENTOS_RELEASE):
8eb28c
+            os = "centos"
8eb28c
         elif ipautil.file_exists(paths.ETC_REDHAT_RELEASE):
8eb28c
             os = "rhel"
8eb28c
 
8eb28c
-- 
8eb28c
1.8.3.1
8eb28c