-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathinventory.tmpl
More file actions
31 lines (31 loc) · 910 Bytes
/
inventory.tmpl
File metadata and controls
31 lines (31 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
all:
vars:
cloud_platform_name: aws
aws_route_table_id: ${routetable_id}
cluster_ip: ${cluster_ip}
aws_stonith_tag: ${stonith_tag}
aws_region: ${region}
children:
hana:
hosts:
%{ for index, value in hana_pip ~}
${hana_name}${format("%02d", index + 1)}:
ansible_host: ${value}
ansible_python_interpreter: ${hana_remote_python}
hana_machinetype: ${hana_machinetype}
ebs_id_to_device_name:
%{ for ebs_map_key, ebs_map_value in ebs_map[index] ~}
- ${ebs_map_key}: ${ebs_map_value}
%{ endfor ~}
%{ endfor ~}
%{ if iscsi_enabled }
iscsi:
hosts:
%{ for index, value in iscsi_pip ~}
${iscsi_name}${format("%02d", index + 1)}:
ansible_host: ${value}
ansible_python_interpreter: ${iscsi_remote_python}
iscsi_machinetype: ${iscsi_machinetype}
%{ endfor ~}
%{ endif }
hosts: null