system-config/modules/openstack_project/templates/puppetmaster
Monty Taylor 3b9eda9359
Prevent launch-node from breaking generated groups
There are potentially two related issues here which can result in
an empty generated groups file. The first is that if there are OS_
environment variables set, then os-client-config can create an 'environ'
cloud. That cloud then, in most cases here, will not be a valid cloud
since it won't be a full config, so iterating over all existing clouds
to get their server will fail, meaning that the inventory will be empty
meaning that generated groups will then be generated empty.

To deal with that, we can consume the newer upstream option that allows
the inventory to not bail out if it has a bad cloud, but instead get all
of the resources from the clouds that do work.

Additionally though, we can do an explicit inventory run so that we can
look to see if the inventory run failed, and if so, avoid running the
expand-groups.sh script, since we'd be fairly assured that it would be
running on top of a bad inventory cache.

Change-Id: Ib18987b3083f6addc61934b435d7ecb14aa1d25a
2016-07-07 11:21:14 -05:00
..
all-clouds.yaml.erb Add BHS1 region to openstackjenkins-ovh all-clouds 2016-05-12 10:20:39 -07:00
ansible-clouds.yaml.erb Prevent launch-node from breaking generated groups 2016-07-07 11:21:14 -05:00
puppetmaster_vhost.conf.erb Puppet the puppetmaster apache vhost 2014-10-16 09:49:06 -07:00