github.com/naphatkrit/deis@v1.12.3/contrib/linode/linode-user-data-template.yaml (about) 1 #cloud-config 2 hostname: $hostname 3 coreos: 4 fleet: 5 metadata: name=%H 6 units: 7 - name: 00-eth0.network 8 runtime: true 9 content: | 10 [Match] 11 Name=eth0 12 13 [Network] 14 DHCP=ipv4 15 Address=$public_ipv4/24 16 Address=$private_ipv4/17 17 Gateway=$gateway.1 18 DNS=72.14.179.5 19 DNS=8.8.8.8 20 DNS=208.67.222.222 21 22 [DHCP] 23 UseDNS=false 24 CriticalConnection=true 25 - name: disable-ipv6.service 26 command: start 27 content: | 28 [Unit] 29 Description=Disable IPv6. The notion of a security group does not exist on Linode. To make firewalling each Linode easier, disable IPv6. 30 Before=network.target 31 32 [Service] 33 Type=oneshot 34 ExecStart=/bin/sh -c "sysctl -w net.ipv6.conf.all.disable_ipv6=1" 35 # use ntpd rather than timesyncd. timesyncd was not keeping the nodes close enough to keep ceph happy 36 - name: systemd-timesyncd.service 37 command: stop 38 mask: true 39 - name: ntpd.service 40 command: start 41 enable: true 42 write_files: 43 - path: /etc/environment 44 content: | 45 COREOS_PUBLIC_IPV4=$public_ipv4 46 COREOS_PRIVATE_IPV4=$private_ipv4 47 - path: /etc/systemd/system/ntpd.service.d/debug.conf 48 content: | 49 [Service] 50 ExecStart= 51 ExecStart=/usr/sbin/ntpd -g -n -f /var/lib/ntp/ntp.drift