diff options
author | 2015-09-22 13:18:04 -0400 | |
---|---|---|
committer | 2015-09-22 13:18:04 -0400 | |
commit | d4ccd3bdf95f4250747f72d0ca98a19f3656d128 (patch) | |
tree | b472fdc055aa8065f5c2b43e977d5755bf365bf8 | |
parent | 53cd9a92f87cf8fbb46f27363f5a61e0457bafc2 (diff) |
Fixes bug where puppet fails to run due to domain name
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>
-rwxr-xr-x | foreman/ci/vm_nodes_provision.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/foreman/ci/vm_nodes_provision.sh b/foreman/ci/vm_nodes_provision.sh index 0754e31..ef2b325 100755 --- a/foreman/ci/vm_nodes_provision.sh +++ b/foreman/ci/vm_nodes_provision.sh @@ -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 |