mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
replica promotion: notify user about ignoring client enrollment options
When IPA client is already installed, notify the user that the enrollment options are ignored in ipa-replica-install. https://fedorahosted.org/freeipa/ticket/5530 Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
parent
e1cb802d15
commit
d68613194b
@ -883,6 +883,12 @@ def promote_check(installer):
|
|||||||
client_fstore = sysrestore.FileStore(paths.IPA_CLIENT_SYSRESTORE)
|
client_fstore = sysrestore.FileStore(paths.IPA_CLIENT_SYSRESTORE)
|
||||||
if not client_fstore.has_files():
|
if not client_fstore.has_files():
|
||||||
ensure_enrolled(installer)
|
ensure_enrolled(installer)
|
||||||
|
else:
|
||||||
|
if (options.domain_name or options.server or options.realm_name or
|
||||||
|
options.host_name or options.password or options.keytab):
|
||||||
|
print("IPA client is already configured on this system, ignoring "
|
||||||
|
"the --domain, --server, --realm, --hostname, --password "
|
||||||
|
"and --keytab options.")
|
||||||
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user