Skip to content

Commit c078820

Browse files
committed
kubeadm: handle cmds
1 parent bfa7a03 commit c078820

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

kvirt/cluster/kubeadm/bootstrap.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
{% set extra_disks = extra_ctlplane_disks %}
66
{% endif %}
77

8+
{% set all_cmds = cmds|default([]) %}
9+
{% do all_cmds.append("bash /root/deploy.sh") %}
10+
811
{{ cluster }}-ctlplane-0:
912
{% set primary_network = {'name': network} %}
1013
{% if config_type in ['aws', 'azure', 'gcp', 'hcloud', 'ibm'] %}
@@ -57,5 +60,4 @@
5760
origin: 90-flannel.rules
5861
{% endif %}
5962
- registry.yml
60-
cmds:
61-
- bash /root/deploy.sh
63+
cmds: {{ all_cmds }}

kvirt/cluster/kubeadm/ctlplanes.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
{% set extra_disks = extra_ctlplane_disks %}
88
{% endif %}
99

10+
{% set all_cmds = cmds|default([]) %}
11+
{% do all_cmds.append("bash /root/deploy.sh") %}
12+
1013
{{ cluster }}-ctlplane-{{ number }}:
1114
{% set primary_network = {'name': network} %}
1215
image: {{ image }}
@@ -44,6 +47,5 @@
4447
- path: /etc/udev/rules.d/90-flannel.rules
4548
origin: 90-flannel.rules
4649
{% endif %}
47-
cmds:
48-
- bash /root/deploy.sh
50+
cmds: {{ all_cmds }}
4951
{% endfor %}

kvirt/cluster/kubeadm/workers.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
{% set extra_disks = extra_worker_disks %}
77
{% endif %}
88

9+
{% set all_cmds = cmds|default([]) %}
10+
{% do all_cmds.append("bash /root/deploy.sh") %}
11+
912
{{cluster }}-worker-{{ number }}:
1013
image: {{ image }}
1114
pool: {{ pool or config_pool }}
@@ -36,6 +39,5 @@
3639
- path: /etc/udev/rules.d/90-flannel.rules
3740
origin: 90-flannel.rules
3841
{% endif %}
39-
cmds:
40-
- bash /root/deploy.sh
42+
cmds: {{ all_cmds }}
4143
{% endfor %}

0 commit comments

Comments
 (0)