Working virt-install

This commit is contained in:
Neill Cox 2023-09-22 09:30:36 +10:00
parent 494c8b5653
commit eb1fbf7eb4
5 changed files with 145 additions and 17 deletions

View file

@ -1,6 +1,15 @@
#cloud-config
system_info:
default_user:
name: stack
password: {data.password}
chpasswd: {{expire: False}}
ssh_pwauth: True
ssh_authorized_keys:
- {data.public_key}
bootcmd:
- "nmcli conn delete 'System eth0'"
- "nmcli conn delete 'Wired connection 1'"
- "nmcli con add con-name eth0 ifname eth0 type ethernet ip4 {data.cidr_1} gw4 {data.gateway} ipv4.dns {data.dns}"
- "nmcli con add con-name eth1 ifname eth1 type ethernet ip4 {data.cidr_2} gw4 {data.gateway} ipv4.dns {data.dns}"