diff --git a/ipaclient/install/client.py b/ipaclient/install/client.py index 93bc74008..a3edf4c62 100644 --- a/ipaclient/install/client.py +++ b/ipaclient/install/client.py @@ -3089,8 +3089,6 @@ def _install(options, tdict): if not options.on_master: client_dns(cli_server[0], hostname, options) - configure_certmonger(fstore, subject_base, cli_realm, hostname, - options, ca_enabled) update_ssh_keys(hostname, paths.SSH_CONFIG_DIR, options.create_sshfp) @@ -3289,6 +3287,11 @@ def _install(options, tdict): logger.info("Configured /etc/krb5.conf for IPA realm %s", cli_realm) + # Configure certmonger after krb5.conf is created and last + # to give higher chance that the new client is replicated. + configure_certmonger(fstore, subject_base, cli_realm, hostname, + options, ca_enabled) + statestore.delete_state('installation', 'complete') statestore.backup_state('installation', 'complete', True) logger.info('Client configuration complete.')