Merge "Finish switching to using new ansible inventory"

This commit is contained in:
Zuul 2018-06-18 23:58:27 +00:00 committed by Gerrit Code Review
commit 48b23f3fe9
2 changed files with 4 additions and 4 deletions

View File

@ -162,7 +162,7 @@ def bootstrap_server(server, key, name, volume_device, keep,
# Regenerate inventory cache, throwing an error if there is an issue
# so that we don't generate a bogus groups file
try:
run(['/etc/ansible/hosts/openstack', '--list'],
run(['/etc/ansible/hosts/openstack_inventory', '--list'],
env=expand_env)
except subprocess.CalledProcessError as e:
print "Inventory regeneration failed"

View File

@ -26,9 +26,9 @@ unset OS_REGION_NAME
# Because we are generating "generated-groups", we need to work on an
# inventory without out it ... otherwise entries that have actually
# disappeared (according to /etc/ansible/hosts/openstack's live list)
# will keep coming back as "ansible --list" finds them in the
# generated-groups file. Later versions of ansible have a
# disappeared (according to /etc/ansible/hosts/openstack_inventory's
# live list) will keep coming back as "ansible --list" finds them in
# the generated-groups file. Later versions of ansible have a
# "inventory_ignore_patterns" that might help, we just copy & remove
# in a separate inventory
inv=${outdir}/hosts