mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Skip time sync during client install when using --no-ntp
When --no-ntp is specified during ipa-client-install, we still attempt to perform a time sync before obtaining a TGT from the KDC. We should not be attempting to sync time with the KDC if we are explicitly told to not configure ntp. Ticket: https://fedorahosted.org/freeipa/ticket/4842 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
parent
1b781b777f
commit
f0c1daf7a2
@ -2324,8 +2324,9 @@ def install(options, env, fstore, statestore):
|
|||||||
# hostname if different from system hostname
|
# hostname if different from system hostname
|
||||||
tasks.backup_and_replace_hostname(fstore, statestore, options.hostname)
|
tasks.backup_and_replace_hostname(fstore, statestore, options.hostname)
|
||||||
|
|
||||||
if not options.on_master:
|
if not options.on_master and options.conf_ntp:
|
||||||
# Attempt to sync time with IPA server.
|
# Attempt to sync time with IPA server.
|
||||||
|
# If we're skipping NTP configuration, we also skip the time sync here.
|
||||||
# We assume that NTP servers are discoverable through SRV records in the DNS
|
# We assume that NTP servers are discoverable through SRV records in the DNS
|
||||||
# If that fails, we try to sync directly with IPA server, assuming it runs NTP
|
# If that fails, we try to sync directly with IPA server, assuming it runs NTP
|
||||||
root_logger.info('Synchronizing time with KDC...')
|
root_logger.info('Synchronizing time with KDC...')
|
||||||
|
Loading…
Reference in New Issue
Block a user