<div dir="ltr">Hello,<div>I'm configuring ipa server on CentOS 6.5 and I notice that when the ipa-server-install command configures ntp.conf it puts inside "rhel" for pool of ntp servers instead of "centos".</div>
<div><br></div><div><div>### Added by IPA Installer ###</div><div>server <a href="http://0.rhel.pool.ntp.org">0.rhel.pool.ntp.org</a></div><div>server <a href="http://1.rhel.pool.ntp.org">1.rhel.pool.ntp.org</a></div><div>
server <a href="http://2.rhel.pool.ntp.org">2.rhel.pool.ntp.org</a></div></div><div><br></div><div><br></div><div>The rpm involved is ipa-server-3.0.0-37.el6.x86_64</div><div>and the file involved is </div><div>/usr/lib/python2.6/site-packages/ipaserver/install/ntpinstance.py<br>
</div><div><br></div><div>where there is this if conditional statement</div><div><br></div><div><div> # We use the OS variable to point it towards either the rhel</div><div> # or fedora pools. Other distros should be added in the future</div>
<div> # or we can get our own pool.</div><div> os = ""</div><div> if ipautil.file_exists("/etc/fedora-release"):</div><div> os = "fedora"</div><div> elif ipautil.file_exists("/etc/redhat-release"):</div>
<div> os = "rhel"</div></div><div><br></div><div>So I think this should be changed in something like</div><div><br></div><div><div> os = ""</div><div> if ipautil.file_exists("/etc/fedora-release"):</div>
<div> os = "fedora"</div><div> elif ipautil.file_exists("/etc/centos-release"):</div><div> os = "centos"</div></div><div><br></div><div>What do you think?</div><div>
Possibly valid for rhel 7 too, but not already tested.</div><div><br></div><div>Gianluca</div><div><br></div></div>