kayobe/ansible/roles/kolla-ansible/templates/seed.j2
Mark Goddard 5cf205502d Decompose overcloud inventory file into top level, components, and services
This allows a deployer to customise their inventory at various levels, by
providing a custom inventory template for one or more of the sections of the
inventory.

* Top level groups define the roles of hosts, e.g. controller or compute.
* Components define groups of services, e.g. nova or ironic.
* Services define single containers, e.g. nova-compute or ironic-api.
2017-08-30 11:02:33 +00:00

16 lines
326 B
Django/Jinja

# Simple inventory for bootstrapping Kolla seed node.
[seed]
{% for seed in groups['seed'] %}
{% set seed_hv=hostvars[seed] %}
{{ seed }}{% if "ansible_host" in seed_hv %} ansible_host={{ seed_hv["ansible_host"] }}{% endif %}
{% endfor %}
[seed:vars]
ansible_user=kolla
[baremetal:children]
seed
[bifrost:children]
seed