-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path05_network.yaml
32 lines (32 loc) · 1009 Bytes
/
05_network.yaml
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
32
# Example network configuration for Ubuntu based systems
name: "Default network configuration"
stages:
initramfs:
- name: "Setup network"
files:
- path: /etc/netplan/elemental_setup.yaml
content: |
network:
version: 2
renderer: networkd
ethernets:
lan0:
dhcp4: true
permissions: 0600
owner: 0
group: 0
- path: /etc/ssh/sshd_config.d/root_login.conf
content: |
PermitRootLogin yes
permissions: 0600
owner: 0
group: 0
- path: /etc/udev/rules.d/70-persistent-net.rules
content: |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="?*", NAME="lan0"
permissions: 0600
owner: 0
group: 0
commands:
- ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
- netplan apply