-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathuser-data
More file actions
26 lines (23 loc) · 707 Bytes
/
user-data
File metadata and controls
26 lines (23 loc) · 707 Bytes
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
#cloud-config
autoinstall:
version: 1
identity:
hostname: ubuntu-server
password: "$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0"
username: ${username}
storage:
layout:
name: direct
ssh:
install-server: true
allow-pw: yes
late-commands:
- echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/ubuntuuser
- sed -ie 's/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"/' /target/etc/default/grub
- curtin in-target --target /target update-grub2
network:
network:
version: 2
ethernets:
eth0:
dhcp4: yes