-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy patharguments.j2
More file actions
31 lines (31 loc) · 1023 Bytes
/
Copy patharguments.j2
File metadata and controls
31 lines (31 loc) · 1023 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
random.trust_cpu=on {# -#}
rd.luks.options=discard {# -#}
coreos.liveiso=RHCOS-CustomIso {# -#}
ignition.firstboot {# -#}
ignition.platform.id=metal {# -#}
coreos.inst.install_dev=/dev/{{ install_drive | default(sda) }} {# -#}
coreos.inst.ignition_url={{ webserver_ignition_fullpath }}{{ hostvars[server].group_names[0] }}.ign {# -#}
{%- if hostvars[server].interfaces is defined -%}
{%- for intf_name, intf in hostvars[server].interfaces.items() -%}
ip={{ intf.ipv4 -}}
::{{ intf.gtwy -}}
:{{ intf.mask -}}
:{{ server -}}
:{{ intf_name -}}
:none {# -#}
{%- endfor -%}
{%- else -%}
{%- if hostvars[server].ipv4 is defined -%}
ip={{ hostvars[server].ipv4 -}}
::{{ hostvars[server].gateway -}}
:{{ hostvars[server].netmask -}}
:{{ server -}}
:{{ hostvars[server].interface -}}
:none {# -#}
{%- else -%}
ip=dhcp {# -#}
{%- endif -%}
{%- endif -%}
{%- for myns in dns -%}
nameserver={{ myns }} {# -#}
{%- endfor -%}