5cf205502d
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.
16 lines
326 B
Django/Jinja
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
|