forked from redhat-cip/openstack-yaml-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharch.yml.tmpl
37 lines (33 loc) · 1.01 KB
/
arch.yml.tmpl
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
32
33
34
35
36
37
---
{% for hname in hosts %}
{% if profiles[hosts[hname]['profile']]['min_step'] %}
{% if profiles[hosts[hname]['profile']]['min_step'] <= step %}
{{ hname }}.{{ config.domain }}:
{% if hosts[hname].ip %}
:server_ip: {{ hosts[hname].ip }}
{% endif %}
:hostname: {{ hname }}
:roles:
- base
{% for step_num in profiles[hosts[hname]['profile']]['steps'] %}
{% if step_num <= step %}
{% if profiles[hosts[hname]['profile']]['steps'][step_num]['roles'] %}
{% for role in profiles[hosts[hname]['profile']]['steps'][step_num]['roles'] %}
{% if serverspec[role] %}
- {{ serverspec[role] }}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% for config_name in profiles[hosts[hname]['profile']]['serverspec_config'] %}
{% if config[profiles[hosts[hname]['profile']]['serverspec_config'][config_name]] %}
:{{ config_name }}: {{ config[profiles[hosts[hname]['profile']]['serverspec_config'][config_name]] }}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
# Local variables:
# mode: yaml
# End: