https://fedorahosted.org/freeipa/ticket/4817 -- David Kupka
From df963852d39ee476b9795da10edaef62f9869799 Mon Sep 17 00:00:00 2001 From: David Kupka <dku...@redhat.com> Date: Tue, 16 Dec 2014 20:35:05 -0500 Subject: [PATCH] Always add /etc/hosts record when DNS is being configured.
This was done previosly but accidentally removed when later with patch for ticket #3575. https://fedorahosted.org/freeipa/ticket/4817 --- ipaserver/install/installutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index b23b404d224e1fef6679582d9e9333ca533ca872..64578f7275fe1fe0aba6121dd605797e3bc8359a 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -490,7 +490,7 @@ def get_server_ip_address(host_name, fstore, unattended, setup_dns, ip_addresses hosts_record = record_in_hosts(str(ip_address)) if hosts_record is None: - if ip_add_to_hosts: + if ip_add_to_hosts or setup_dns: print "Adding ["+str(ip_address)+" "+host_name+"] to your /etc/hosts file" fstore.backup_file(paths.HOSTS) add_record_to_hosts(str(ip_address), host_name) -- 2.1.0
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel