Fixes bug where puppet fails to run due to domain name 99/1899/1
authorTim Rozet <trozet@redhat.com>
Tue, 22 Sep 2015 17:18:04 +0000 (13:18 -0400)
committerTim Rozet <trozet@redhat.com>
Tue, 22 Sep 2015 20:10:56 +0000 (20:10 +0000)
Puppet relies on facter to gather host facts, including domain name.
Unfortunately facter gathers domain name by looking at the first domain
listed in /etc/resolv.conf, rather than the domain name set on the host.
This fix corrects the domain in that file.

JIRA: APEX-36

Change-Id: If4e4a0b9f82e562463d97ceeee6b7dfd445e3bdc
Signed-off-by: Tim Rozet <trozet@redhat.com>
(cherry picked from commit d4ccd3bdf95f4250747f72d0ca98a19f3656d128)

foreman/ci/vm_nodes_provision.sh

index 0754e31..ef2b325 100755 (executable)
@@ -36,7 +36,7 @@ fi
 ##modify /etc/resolv.conf to point to foreman
 echo "${blue} Configuring resolv.conf with DNS: $dns_server ${reset}"
 cat > /etc/resolv.conf << EOF
-search ci.com $domain_name
+search $domain_name
 nameserver $dns_server
 nameserver 8.8.8.8