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