Generate static ansible inventory
Bug #1486899 reported by
Hugh Saunders
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 |
Changed in openstack-ansible: | |
status: | Confirmed → Opinion |
To post a comment you must log in.
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 |