-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathgce-user-data-template
More file actions
34 lines (34 loc) · 1.1 KB
/
gce-user-data-template
File metadata and controls
34 lines (34 loc) · 1.1 KB
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
28
29
30
31
32
33
34
#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
- name: docker.service
drop-ins:
- name: 90-after-docker-volume.conf
content: |
[Unit]
Requires=var-lib-docker.mount
After=var-lib-docker.mount