packer: fixing networking
This commit is contained in:
14
packer/files/netplan-dev.yaml
Normal file
14
packer/files/netplan-dev.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
network:
|
||||
version: 2
|
||||
renderer: networkd
|
||||
ethernets:
|
||||
eth0:
|
||||
dhcp4: yes
|
||||
dhcp6: yes
|
||||
eth1:
|
||||
dhcp4: no
|
||||
dhcp6: no
|
||||
addresses:
|
||||
- "192.168.4.64/24"
|
||||
|
||||
# dev nodes may also use wireless, which requires serial console to setup.
|
||||
7
packer/files/netplan-node.yaml
Normal file
7
packer/files/netplan-node.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
network:
|
||||
version: 2
|
||||
renderer: networkd
|
||||
ethernets:
|
||||
eth0:
|
||||
dhcp4: yes
|
||||
dhcp6: yes
|
||||
@@ -1,18 +0,0 @@
|
||||
[Unit]
|
||||
Description=Tailscale
|
||||
Documentation=https://tailscale.com/kb/
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
AssertFileIsExecutable=/usr/bin/tailscaled
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Group=root
|
||||
ExecStart=/usr/bin/tailscale up --advertise-routes=192.168.4.1/24
|
||||
ExecStop=
|
||||
|
||||
# Let systemd restart this service always
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -5,11 +5,9 @@
|
||||
chpasswd:
|
||||
expire: false
|
||||
list:
|
||||
- name: ubuntu
|
||||
password: ubuntu
|
||||
type: text
|
||||
- ubuntu:ubuntu
|
||||
|
||||
hostname: cluster-cdev
|
||||
hostname: cdev
|
||||
ssh_pwauth: true
|
||||
ssh_authorized_keys:
|
||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM47gCbb0BQOm6H4Ol8DEKD+CXTNYDJxe7QvJhdLZR/F kyle@petrichor
|
||||
@@ -24,17 +22,21 @@ disable_root: true
|
||||
resize_rootfs: true
|
||||
|
||||
network:
|
||||
Version: 2
|
||||
Renderer: networkd
|
||||
version: 2
|
||||
renderer: networkd
|
||||
ethernets:
|
||||
eth0:
|
||||
dhcp4: no
|
||||
dhcp6: no
|
||||
addresses:
|
||||
"192.168.4.64/24"
|
||||
label: "cluster"
|
||||
lifetime: forever
|
||||
- 192.168.4.64/24
|
||||
eth1:
|
||||
dhcp4: yes
|
||||
dhcp6: yes
|
||||
|
||||
wifis:
|
||||
wlan0:
|
||||
dhcp4: yes
|
||||
dhcp6: yes
|
||||
access-points:
|
||||
"ATTjrThnDS":
|
||||
password: "b#ifs9zv5epx"
|
||||
|
||||
@@ -5,9 +5,7 @@
|
||||
chpasswd:
|
||||
expire: false
|
||||
list:
|
||||
- name: ubuntu
|
||||
password: ubuntu
|
||||
type: text
|
||||
- ubuntu:ubuntu
|
||||
|
||||
hostname: node16
|
||||
ssh_pwauth: true
|
||||
@@ -23,10 +21,3 @@ disable_root: true
|
||||
|
||||
resize_rootfs: true
|
||||
|
||||
network:
|
||||
Version: 2
|
||||
Renderer: networkd
|
||||
ethernets:
|
||||
eth0:
|
||||
dhcp4: yes
|
||||
dhcp6: yes
|
||||
|
||||
Reference in New Issue
Block a user