summaryrefslogtreecommitdiffstats
path: root/playbooks/provisioning/openstack/sample-inventory/inventory.py
Commit message (Collapse)AuthorAgeFilesLines
* Set public_v4 to private_v4 if it doesn't existTomas Sedovic2017-10-051-2/+3
| | | | | The DNS code expects a `public_v4` even when we use the provider networks. Let's just always export it.
* Fix flake8 errorsTomas Sedovic2017-10-051-16/+14
|
* Add dynamic inventoryTomas Sedovic2017-10-041-0/+89
This adds an `inventory.py` script to the `sample-inventory` that lists all the necessary servers and groups dynamically, skipping the `static_inventory` role as well as the `hosts` creation. It also adds an `os_cinder` lookup function which is necessary for a seamless Cinder OpenShift registry integration without a static inventory.