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