github.com/rochacon/deis@v1.0.2-0.20150903015341-6839b592a1ff/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: false 9 content: | 10 [Match] 11 Name=eth0 12 13 [Network] 14 Address=$public_ipv4/24 15 Address=$private_ipv4/17 16 Gateway=$gateway.1 17 DNS=72.14.179.5 18 DNS=8.8.8.8 19 DNS=208.67.222.222 20 - name: disable-ipv6.service 21 command: start 22 content: | 23 [Unit] 24 Description=Disable IPv6. The notion of a security group does not exist on Linode. To make firewalling each Linode easier, disable IPv6. 25 Before=network.target 26 27 [Service] 28 Type=oneshot 29 ExecStart=/bin/sh -c "sysctl -w net.ipv6.conf.all.disable_ipv6=1" 30 # use ntpd rather than timesyncd. timesyncd was not keeping the nodes close enough to keep ceph happy 31 - name: systemd-timesyncd.service 32 command: stop 33 mask: true 34 - name: ntpd.service 35 command: start 36 enable: true 37 write_files: 38 - path: /etc/environment 39 content: | 40 COREOS_PUBLIC_IPV4=$public_ipv4 41 COREOS_PRIVATE_IPV4=$private_ipv4 42 - path: /etc/systemd/system/ntpd.service.d/debug.conf 43 content: | 44 [Service] 45 ExecStart= 46 ExecStart=/usr/sbin/ntpd -g -n -f /var/lib/ntp/ntp.drift