3b9eda9359
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
57 lines
2.0 KiB
Plaintext
57 lines
2.0 KiB
Plaintext
ansible:
|
|
fail_on_errors: False
|
|
use_hostnames: True
|
|
cache:
|
|
expiration_time: 86400
|
|
path: /var/cache/ansible-inventory
|
|
clouds:
|
|
openstackci-internap:
|
|
region_name: nyj01
|
|
profile: internap
|
|
auth:
|
|
username: <%= @puppetmaster_clouds['openstackci_internap_username'] %>
|
|
password: <%= @puppetmaster_clouds['openstackci_internap_password'] %>
|
|
project_name: <%= @puppetmaster_clouds['openstackci_internap_project_name'] %>
|
|
networks:
|
|
- name: inap-17301-WAN2344
|
|
routes_externally: True
|
|
- name: inap-17301-LAN3328
|
|
routes_externally: False
|
|
openstackci-ovh:
|
|
regions:
|
|
- GRA1
|
|
- SBG1
|
|
- BHS1
|
|
profile: ovh
|
|
auth:
|
|
username: <%= @puppetmaster_clouds['openstackci_ovh_username'] %>
|
|
password: <%= @puppetmaster_clouds['openstackci_ovh_password'] %>
|
|
project_name: <%= @puppetmaster_clouds['openstackci_ovh_project_name'] %>
|
|
openstackci-rax:
|
|
regions:
|
|
- DFW
|
|
- ORD
|
|
- IAD
|
|
profile: rackspace
|
|
auth:
|
|
username: <%= @puppetmaster_clouds['openstackci_rax_username'] %>
|
|
password: <%= @puppetmaster_clouds['openstackci_rax_password'] %>
|
|
project_id: <%= @puppetmaster_clouds['openstackci_rax_project_id'] %>
|
|
openstackci-osic-cloud1:
|
|
region_name: RegionOne
|
|
auth:
|
|
auth_url: https://cloud1.osic.org:5000
|
|
username: <%= @puppetmaster_clouds['openstackci_osic_username'] %>
|
|
password: <%= @puppetmaster_clouds['openstackci_osic_password'] %>
|
|
project_name: <%= @puppetmaster_clouds['openstackci_osic_project_name'] %>
|
|
project_domain_name: default
|
|
user_domain_name: default
|
|
identity_api_version: '3'
|
|
openstackci-vexxhost:
|
|
region_name: ca-ymq-1
|
|
profile: vexxhost
|
|
auth:
|
|
username: '<%= @puppetmaster_clouds['openstackci_vexxhost_username'] %>'
|
|
password: '<%= @puppetmaster_clouds['openstackci_vexxhost_password'] %>'
|
|
project_name: '<%= @puppetmaster_clouds['openstackci_vexxhost_project_name'] %>'
|