Generate static ansible inventory

Bug #1486899 reported by Hugh Saunders
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Opinion
Wishlist
Unassigned

Bug Description

The dynamic inventory script reads a set of environment files and generates json for ansible to interpret. This JSON not very human readable.

I propose that we add an option to the dyanmic inventory script for generating a static ansible inventory from our environment files. This way people can read the generated inventory, check that it is correct and then use it as a standard static inventory.

Changed in openstack-ansible:
importance: Undecided → Wishlist
Revision history for this message
Bjoern (bjoern-t) wrote :

I think this is covered by using the inventory-manager:

/opt/os-ansible-deployment/scripts# ./inventory-manage.py -f /etc/rpc_deploy/rpc_inventory.json -l
+----------------+---------------+---------------------+----------------------+----------------+------------------+-----------------------------+
| container_name | is_metal | component | physical_host | tunnel_address | ansible_ssh_host | container_types |
+----------------+---------------+---------------------+----------------------+----------------+------------------+-----------------------------+
| infra01 | True | None | infra01 | None | 172.29.236.51 | infra01_containers |
| infra02 | True | None | infra02 | None | 172.29.236.52 | infra02_containers |

Revision history for this message
Jesse Pretorius (jesse-pretorius) wrote :

The group names are now output on demand, making it a little more readable: https://review.openstack.org/224977

Revision history for this message
Jesse Pretorius (jesse-pretorius) wrote :

For the purpose of generating a static inventory in a form that's understood by someone used to normal inventories in Ansible, I think that this is useful.

Changed in openstack-ansible:
status: New → Confirmed
Changed in openstack-ansible:
status: Confirmed → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.