-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathgce-user-data-template
More file actions
27 lines (27 loc) · 918 Bytes
/
gce-user-data-template
File metadata and controls
27 lines (27 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#cloud-config
coreos:
units:
- name: format-ephemeral.service
command: start
content: |
[Unit]
Description=Formats the ephemeral drive
ConditionPathExists=!/etc/gce-formatted
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/wipefs -f /dev/disk/by-id/scsi-0Google_PersistentDisk_coredocker
ExecStart=/usr/sbin/mkfs.ext4 -i 4096 -b 4096 /dev/disk/by-id/scsi-0Google_PersistentDisk_coredocker
ExecStart=/bin/touch /etc/gce-formatted
- name: var-lib-docker.mount
command: start
content: |
[Unit]
Description=Mount ephemeral to /var/lib/docker
Requires=format-ephemeral.service
After=format-ephemeral.service
Before=docker.service
[Mount]
What=/dev/disk/by-id/scsi-0Google_PersistentDisk_coredocker
Where=/var/lib/docker
Type=ext4