2dbde3f515
- Inventory is a core feature of a virt provisioning tool. At the moment, quickstart is pulling in art-inventory [1] via requirements.txt. This patch is dumping art-inventory [1] directly into quickstart itself. - Convert roles/tripleo-inventory/README.md in rst format. - Remove some extra newlines at end of file. - Remove unnecessary files and directory. [1] - https://github.com/redhat-openstack/ansible-role-tripleo-inventory Change-Id: I1f20a69ca13de99eda0d98a26c63c66524b22dc8 Closes-Bug: 1604517 Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
27 lines
798 B
Django/Jinja
27 lines
798 B
Django/Jinja
{% for host in groups['all'] %}
|
|
{% if hostvars[host].get('ansible_connection', '') == 'local' %}
|
|
{{ host }} ansible_connection=local
|
|
{% else %}
|
|
|
|
{{ host }}{% if 'ansible_host' in hostvars[host]
|
|
%} ansible_host={{ hostvars[host]['ansible_host'] }}{% endif %}
|
|
{% if 'ansible_user' in hostvars[host]
|
|
%} ansible_user={{ hostvars[host]['ansible_user'] }}{% endif %}
|
|
{% if 'ansible_private_key_file' in hostvars[host]
|
|
%} ansible_private_key_file={{ hostvars[host]['ansible_private_key_file'] }}{% endif %}
|
|
{% if 'undercloud_ip' in hostvars[host]
|
|
%} undercloud_ip={{ hostvars[host]['undercloud_ip'] }}{% endif %}
|
|
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% for group in groups %}
|
|
{% if group not in ['ungrouped', 'all'] %}
|
|
[{{ group }}]
|
|
{% for host in groups[group] %}
|
|
{{ host }}
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
{% endfor %}
|