|
|
|
@@ -8,15 +8,15 @@
|
|
|
|
|
[control]
|
|
|
|
|
{% if scenario == 'masakari' %}
|
|
|
|
|
{% for host in hostvars if host in ['primary'] %}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_user=kolla ansible_ssh_private_key_file={{ ansible_env.HOME ~ '/.ssh/id_rsa_kolla' }}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% elif scenario == 'monasca' %}
|
|
|
|
|
{% for host in hostvars if host in ['primary', 'secondary1', 'secondary2'] %}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_user=kolla ansible_ssh_private_key_file={{ ansible_env.HOME ~ '/.ssh/id_rsa_kolla' }}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% else %}
|
|
|
|
|
{% for host in hostvars %}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_user=kolla ansible_ssh_private_key_file={{ ansible_env.HOME ~ '/.ssh/id_rsa_kolla' }}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
@@ -32,40 +32,40 @@ control
|
|
|
|
|
[compute]
|
|
|
|
|
{% if scenario == 'masakari' %}
|
|
|
|
|
{% for host in hostvars if host in ['ternary1', 'ternary2'] %}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_user=kolla ansible_ssh_private_key_file={{ ansible_env.HOME ~ '/.ssh/id_rsa_kolla' }}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% else %}
|
|
|
|
|
{% for host in hostvars %}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_user=kolla ansible_ssh_private_key_file={{ ansible_env.HOME ~ '/.ssh/id_rsa_kolla' }}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
[storage]
|
|
|
|
|
{% for host in hostvars %}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_user=kolla ansible_ssh_private_key_file={{ ansible_env.HOME ~ '/.ssh/id_rsa_kolla' }}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
[monitoring]
|
|
|
|
|
{% if scenario == 'monasca' %}
|
|
|
|
|
{% for host in hostvars if host in ['secondary3', 'secondary4', 'secondary5'] %}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_user=kolla ansible_ssh_private_key_file={{ ansible_env.HOME ~ '/.ssh/id_rsa_kolla' }}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% else %}
|
|
|
|
|
{% for host in hostvars %}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_user=kolla ansible_ssh_private_key_file={{ ansible_env.HOME ~ '/.ssh/id_rsa_kolla' }}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
[deployment]
|
|
|
|
|
{% for host in hostvars %}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_user=kolla ansible_ssh_private_key_file={{ ansible_env.HOME ~ '/.ssh/id_rsa_kolla' }}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
{% if scenario == 'cells' %}
|
|
|
|
|
{% for host in hostvars %}
|
|
|
|
|
{% set cell_name = 'cell' ~ loop.index %}
|
|
|
|
|
[{{ cell_name }}]
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_user=kolla ansible_ssh_private_key_file={{ ansible_env.HOME ~ '/.ssh/id_rsa_kolla' }} mariadb_shard_id={{ loop.index0 % 2 }}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} mariadb_shard_id={{ loop.index0 % 2 }}
|
|
|
|
|
|
|
|
|
|
[{{ cell_name }}:vars]
|
|
|
|
|
nova_cell_name = {{ cell_name }}
|
|
|
|
@@ -139,7 +139,7 @@ control
|
|
|
|
|
[hacluster]
|
|
|
|
|
{% for host in hostvars %}
|
|
|
|
|
{% if host in ['primary', 'secondary'] %}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_user=kolla ansible_ssh_private_key_file={{ ansible_env.HOME ~ '/.ssh/id_rsa_kolla' }}
|
|
|
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|