diff options
author | Simo Sorce <ssorce@redhat.com> | 2008-02-20 11:03:46 -0500 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2008-02-20 11:03:46 -0500 |
commit | 0ae42b28de803bcf024eb9b2a3560b9a0702ce4b (patch) | |
tree | 1c05185ad88772444087dfb7885c377dd7acb573 /ipa-server/ipa-install/ipa-replica-install | |
parent | 46cb6e9bdd74d217ac510576a4114bacb7adfb12 (diff) | |
download | freeipa-0ae42b28de803bcf024eb9b2a3560b9a0702ce4b.tar.gz freeipa-0ae42b28de803bcf024eb9b2a3560b9a0702ce4b.tar.xz freeipa-0ae42b28de803bcf024eb9b2a3560b9a0702ce4b.zip |
Start ntpd first unless we do not want it.
Make sure we do sync the clock leaping to the current correct time.
This avoids problems with bad dates on certificates, etc..
Diffstat (limited to 'ipa-server/ipa-install/ipa-replica-install')
-rw-r--r-- | ipa-server/ipa-install/ipa-replica-install | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ipa-server/ipa-install/ipa-replica-install b/ipa-server/ipa-install/ipa-replica-install index 0fb0a5656..234a624b6 100644 --- a/ipa-server/ipa-install/ipa-replica-install +++ b/ipa-server/ipa-install/ipa-replica-install @@ -42,6 +42,8 @@ class ReplicaConfig: def parse_options(): from optparse import OptionParser parser = OptionParser() + parser.add_option("-N", "--no-ntp", dest="conf_ntp", action="store_false", + help="do not configure ntp", default=True) parser.add_option("-d", "--debug", dest="debug", action="store_true", default=False, help="gather extra debugging information") @@ -171,6 +173,12 @@ def main(): except ldap.INVALID_CREDENTIALS, e : sys.exit("\nThe password provided is incorrect for LDAP server %s" % config.master_host_name) + # Configure ntpd + if options.conf_ntp: + ntp = ntpinstance.NTPInstance() + ntp.create_instance() + + # Configure dirsrv install_ds(config) repl = replication.ReplicationManager(config.host_name, config.dirman_password) @@ -189,10 +197,6 @@ def main(): webgui = httpinstance.WebGuiInstance() webgui.create_instance() - # Configure ntpd - ntp = ntpinstance.NTPInstance() - ntp.create_instance() - service.restart("dirsrv") service.restart("krb5kdc") @@ -214,4 +218,4 @@ except Exception, e: for str in traceback.format_tb(sys.exc_info()[2]): message = message + "\n" + str logging.debug(message) - sys.exit(1) + sys.exit(1) |