Merge "[docs][userguide] Update formatting on userguide chapters 12-14"
[yardstick.git] / ansible / roles / create_node_pod_yaml / templates / pod.yaml.j2
1 ---
2 nodes:
3 {% for node in groups[pod_group] %}
4 -
5   name: "{{ node }}"
6 {% if "control" in hostvars[node].group_names %}
7   role: Controller
8 {% elif "compute" in hostvars[node].group_names %}
9   role: Compute
10 {% endif %}
11   ip: "{{ hostvars[node].ansible_host }}"
12   user: "{{ hostvars[node].ansible_user }}"
13 {% if hostvars[node].ansible_port is defined %}
14   ssh_port: "{{ hostvars[node].ansible_port }}"
15 {% endif %}
16 {% if hostvars[node].ansible_ssh_pass is defined %}
17   password: "{{ hostvars[node].ansible_ssh_pass }}"
18 {% endif %}
19 {% if hostvars[node].ansible_ssh_private_key_file is defined %}
20   key_filename: "{{ hostvars[node].ansible_ssh_private_key_file }}"
21 {% endif %}
22 {% endfor %}