github.com/technosophos/deis@v1.7.1-0.20150915173815-f9005256004b/contrib/gce/gce-user-data-template (about) 1 #cloud-config 2 coreos: 3 units: 4 - name: format-ephemeral.service 5 command: start 6 content: | 7 [Unit] 8 Description=Formats the ephemeral drive 9 ConditionPathExists=!/etc/gce-formatted 10 [Service] 11 Type=oneshot 12 RemainAfterExit=yes 13 ExecStart=/usr/sbin/wipefs -f /dev/disk/by-id/scsi-0Google_PersistentDisk_coredocker 14 ExecStart=/usr/sbin/mkfs.ext4 -i 4096 -b 4096 /dev/disk/by-id/scsi-0Google_PersistentDisk_coredocker 15 ExecStart=/bin/touch /etc/gce-formatted 16 - name: var-lib-docker.mount 17 command: start 18 content: | 19 [Unit] 20 Description=Mount ephemeral to /var/lib/docker 21 Requires=format-ephemeral.service 22 After=format-ephemeral.service 23 Before=docker.service 24 [Mount] 25 What=/dev/disk/by-id/scsi-0Google_PersistentDisk_coredocker 26 Where=/var/lib/docker 27 Type=ext4 28 - name: docker.service 29 drop-ins: 30 - name: 90-after-docker-volume.conf 31 content: | 32 [Unit] 33 Requires=var-lib-docker.mount 34 After=var-lib-docker.mount