Skip to content

Instantly share code, notes, and snippets.

@leoleoasd
Created September 5, 2021 13:21
Show Gist options
  • Save leoleoasd/357d61f50e0faa21f4a9175fa9f30a6b to your computer and use it in GitHub Desktop.
Save leoleoasd/357d61f50e0faa21f4a9175fa9f30a6b to your computer and use it in GitHub Desktop.
My user-data for autoinstall ubuntu server.
#cloud-config
autoinstall:
apt:
geoip: true
preserve_sources_list: false
primary:
- arches: [amd64, i386]
uri: http://mirrors.tuna.tsinghua.edu.cn/ubuntu
- arches: [default]
uri: http://ports.ubuntu.com/ubuntu-ports
interactive-sections:
- identity
keyboard: {layout: us, toggle: null, variant: ''}
locale: en_US
network:
ethernets:
ens160: {dhcp4: true}
version: 2
ssh:
allow-pw: false
authorized-keys: []
install-server: true
storage:
layout:
name: direct
version: 1
@leoleoasd
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment