On 11/30/2014 02:03 AM, Gabe Alford wrote:
Hello,

Fix for https://fedorahosted.org/freeipa/ticket/4583

Thanks,

Gabe



_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Hello!

Thanks for patch. I guess that you wanted to add the "iburst" option only once. Right now it will generate lines like:

server <server-fqdn> iburst iburst

Attaching the fixed patch. Are you satisfied with it?

--
David Kupka
From f571e379b3e7498e5f32092d633bd6219b1b9c5c Mon Sep 17 00:00:00 2001
From: Gabe <redhatri...@gmail.com>
Date: Sat, 29 Nov 2014 17:53:03 -0700
Subject: [PATCH] Update default NTP configuration

- Add in missing 4th default ntp server
- Add iburst to configuration

https://fedorahosted.org/freeipa/ticket/4583
---
 ipaserver/install/ntpinstance.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ipaserver/install/ntpinstance.py b/ipaserver/install/ntpinstance.py
index c653525d3abf43bef8847f55ef9e22108123c721..f2edf9bc18ec5408d7c17a7f1d90235c1ac164a5 100644
--- a/ipaserver/install/ntpinstance.py
+++ b/ipaserver/install/ntpinstance.py
@@ -51,6 +51,7 @@ class NTPInstance(service.Service):
         srv_vals.append("0.%s.pool.ntp.org" % os)
         srv_vals.append("1.%s.pool.ntp.org" % os)
         srv_vals.append("2.%s.pool.ntp.org" % os)
+        srv_vals.append("3.%s.pool.ntp.org" % os)
         srv_vals.append("127.127.1.0")
         fudge = ["fudge", "127.127.1.0", "stratum", "10"]
 
@@ -92,7 +93,7 @@ class NTPInstance(service.Service):
             fd.write("\n### Added by IPA Installer ###\n")
             if len(srv_vals) != 0:
                 for srv in srv_vals:
-                    fd.write("server "+srv+"\n")
+                    fd.write("server "+srv+" iburst\n")
             if not fudge_present:
                 fd.write("fudge 127.127.1.0 stratum 10\n")
             fd.close()
-- 
2.1.0

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to