In some cases it is useful to use a user other than the default 'kolla' to perform kolla ansible remote execution. Kolla is adding support for this in the Rocky release, we should use it. It is now possible to configure a different user via the kolla_ansible_user and kolla_ansible_group variables. Depends-On: https://review.openstack.org/581330 Change-Id: I280fb8f70eacd31fff0ae5671ddd6608cd02ae6e Story: 2002914 Task: 22892
20 lines
555 B
Django/Jinja
20 lines
555 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_ansible_user }}
|
|
{% 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
|