20 lines
536 B
Django/Jinja
20 lines
536 B
Django/Jinja
# Simple inventory for bootstrapping Kolla seed node.
|
|
[seed]
|
|
{% for seed in groups.get('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
|
|
{% if kolla_ansible_target_venv is not none %}
|
|
# Execute ansible modules on the remote target hosts using a virtualenv.
|
|
ansible_python_interpreter={{ kolla_ansible_target_venv }}/bin/python
|
|
{% endif %}
|
|
|
|
[baremetal:children]
|
|
seed
|
|
|
|
[bifrost:children]
|
|
seed
|