Skip to content

Commit 623f8f0

Browse files
fix cloudinit
Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
1 parent 2c100f6 commit 623f8f0

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

test/dvp-static-cluster/charts/infra/templates/_helpers.tpl

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,18 @@ spec:
5454
#cloud-config
5555
ssh_pwauth: true
5656
package_update: true
57-
network:
58-
version: 2
59-
ethernets:
60-
eno2:
61-
dhcp4: false
62-
dhcp6: false
63-
addresses: []
64-
link-local: [ipv6]
65-
optional: false
57+
write_files:
58+
- path: /etc/netplan/99-eno2.yaml
59+
content: |
60+
network:
61+
version: 2
62+
ethernets:
63+
eno2:
64+
dhcp4: false
65+
dhcp6: false
66+
addresses: []
67+
link-local: []
68+
optional: true
6669
packages:
6770
- qemu-guest-agent
6871
- jq
@@ -80,6 +83,7 @@ spec:
8083
- {{ $ctx.Values.discovered.publicSSHKey }}
8184

8285
runcmd:
86+
- netplan apply
8387
- systemctl enable --now qemu-guest-agent.service
8488
final_message: "\U0001F525\U0001F525\U0001F525 The system is finally up, after $UPTIME seconds \U0001F525\U0001F525\U0001F525"
8589
runPolicy: AlwaysOn

0 commit comments

Comments
 (0)