Explicitly set $FACTER_fqdn

Instead of letting puppet figure out the fqdn, tell it the right value
to use.  This will hopefully fix issues where puppet has detected a
different fqdn than has actually been configured resulting in errors
similar to:

Could not run: Could not retrieve facts for localhost.localhost: no
address for localhost.localhost

Change-Id: I158766b711fbdfb907f5b3aeb8ad4d0e47570fe3
Partial-Bug: #1607334
This commit is contained in:
James Slagle 2016-07-28 07:51:31 -04:00
parent 330d92cbc4
commit 6058e39c98
1 changed files with 3 additions and 0 deletions

View File

@ -16,4 +16,7 @@ function puppet_apply {
fi
}
# Explicitly set fqdn instead of letting puppet detect it.
# See https://bugs.launchpad.net/tripleo/+bug/1607334
export FACTER_fqdn=$(hostnamectl --static)
puppet_apply puppet apply --detailed-exitcodes /etc/puppet/manifests/puppet-stack-config.pp