Created
September 5, 2021 13:21
-
-
Save leoleoasd/357d61f50e0faa21f4a9175fa9f30a6b to your computer and use it in GitHub Desktop.
My user-data for autoinstall ubuntu server.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference: https://ubuntu.com/server/docs/install/autoinstall-quickstart