From 0e2775de0a5c2ef6716e58b2c560c4ff96d7a899 Mon Sep 17 00:00:00 2001 From: Yaoyuan Date: Mon, 18 May 2020 06:08:15 +0800 Subject: [PATCH] init --- cloud-config.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 cloud-config.yml diff --git a/cloud-config.yml b/cloud-config.yml new file mode 100644 index 0000000..2b43226 --- /dev/null +++ b/cloud-config.yml @@ -0,0 +1,34 @@ +#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 \ No newline at end of file