Files
RancherOS/cloud-config.yml
2020-05-18 06:14:12 +08:00

37 lines
1.1 KiB
YAML

#cloud-config
hostname: RancherOS-VM
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQChI4f0CgN434uZxvpqaQd3EmA03gtPHSPLcDlrv4yASyD1XHnPnB6V2Pko70mbg1Q+ckquoqJU92fC5vLhS7yfixGu966eBEc5o/8e/LE6T/r182NVZ3cWuT70MUJ+RWxjsj/7RtI7vS+IKaiTHzRxgo/EGfKSmk7dXI5ugncgHWnQfyugqqHah9a2fCQski9DLNQwG2YBui0vvDXWkjysLRrnxmBcozfrdnp7OdY3JuqazwURPEVkmsYF2bkV+jTOkrKTO/BNEFqcrhMXigLQdss3+YGVuRfPJmoKM/668FNSq5TNAtSX5TnWZ7KNRyFQiSdEYZeJ/YU2ubgomzct
write_files:
- container: ntp
path: /etc/ntp.conf
permission: "0644"
owner: root
content: |
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst
server 3.pool.ntp.org iburst
# Allow only time queries, at a limited rate, sending KoD when in excess.
# Allow all local queries (IPv4, IPv6)
restrict default nomodify nopeer noquery limited kod
restrict 127.0.0.1
restrict [::1]
rancher:
console: alpine
network:
dns:
nameservers:
- 1.1.1.1
- 8.8.8.8
override: false
interfaces:
eth0:
dhcp: true
state:
autoformat:
- /dev/sda