mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 08:21:05 -06:00
Ask for user confirmation in ipa-server-install
Summarize entered IPA server configuration so that user can examine it and stop the installation process in case of error. Before this patch, user had to know which question is the last one and check the values he entered in various places during the interactive wizard. https://fedorahosted.org/freeipa/ticket/1083
This commit is contained in:
parent
2203bb650c
commit
d040b93e38
@ -792,12 +792,6 @@ def main():
|
||||
if options.reverse_zone and not bindinstance.verify_reverse_zone(options.reverse_zone, ip):
|
||||
sys.exit(1)
|
||||
|
||||
print "The IPA Master Server will be configured with"
|
||||
print "Hostname: " + host_name
|
||||
print "IP address: " + ip_address
|
||||
print "Domain name: " + domain_name
|
||||
print ""
|
||||
|
||||
if not options.realm_name:
|
||||
realm_name = read_realm_name(domain_name, options.unattended)
|
||||
root_logger.debug("read realm_name: %s\n" % realm_name)
|
||||
@ -848,6 +842,25 @@ def main():
|
||||
dns_forwarders = ()
|
||||
root_logger.debug("will use dns_forwarders: %s\n" % str(dns_forwarders))
|
||||
|
||||
print
|
||||
print "The IPA Master Server will be configured with:"
|
||||
print "Hostname: %s" % host_name
|
||||
print "IP address: %s" % ip_address
|
||||
print "Domain name: %s" % domain_name
|
||||
print "Realm name: %s" % realm_name
|
||||
print
|
||||
|
||||
if options.setup_dns:
|
||||
print "BIND DNS server will be configured to serve IPA domain with:"
|
||||
print "Forwarders: %s" % ("No forwarders" if not dns_forwarders \
|
||||
else ", ".join([str(ip) for ip in dns_forwarders]))
|
||||
print "Reverse zone: %s" % ("No reverse zone" if options.no_reverse \
|
||||
else reverse_zone)
|
||||
print
|
||||
|
||||
if not options.unattended and not user_input("Continue to configure the system with these values?", False):
|
||||
sys.exit("Installation aborted")
|
||||
|
||||
# Installation has started. No IPA sysrestore items are restored in case of
|
||||
# failure to enable root cause investigation
|
||||
installation_cleanup = False
|
||||
|
Loading…
Reference in New Issue
Block a user