forked from openshift-kni/baremetal-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-config.j2
32 lines (32 loc) · 967 Bytes
/
install-config.j2
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
{% for host in groups['bootstrap'] %}
apiVersion: v1
baseDomain: {{ hostvars[host]['domain'] }}
metadata:
name: {{ hostvars[host]['cluster'] }}
networking:
machineCIDR: {{ hostvars[host]['extcidrnet'] }}
compute:
- name: worker
replicas: {{ hostvars[host]['numworkers'] }}
controlPlane:
name: master
replicas: {{ hostvars[host]['nummasters'] }}
platform:
baremetal: {}
platform:
baremetal:
apiVIP: {{ hostvars[host]['apivip'] }}
ingressVIP: {{ hostvars[host]['ingressvip'] }}
dnsVIP: {{ hostvars[host]['ns1vip'] }}
hosts:
{% endfor %}
{% for host in groups['masters'] %}
- name: {{ hostvars[host]['name'] }}
role: {{ hostvars[host]['role'] }}
bmc:
address: ipmi://{{ hostvars[host]['ipmi_address'] }}
username: {{ hostvars[host]['user'] }}
password: {{ hostvars[host]['password'] }}
bootMACAddress: {{ hostvars[host]['mac'] }}
hardwareProfile: default
{% endfor %}