forked from deis/deis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
user-data
98 lines (85 loc) · 2.48 KB
/
user-data
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#cloud-config
---
coreos:
etcd:
addr: 172.17.8.100:4001
peer-addr: 172.17.8.100:7001
units:
- name: docker-patch.service
command: start
content: |
[Unit]
Description=patch /usr/bin/docker with an S3 binary
[Service]
Type=oneshot
ExecStart=/usr/bin/wget --no-check-certificate -q -O /home/core/docker.symlink-fix https://s3-us-west-2.amazonaws.com/deis/docker.symlink-fix
ExecStartPost=/bin/chmod 0755 /home/core/docker.symlink-fix
ExecStartPost=/bin/mount --bind /home/core/docker.symlink-fix /usr/bin/docker
[Install]
WantedBy=multi-user.target
- name: docker.service
content: |
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.io
[Service]
ExecStartPre=/bin/mount --make-rprivate /
# Run docker but don't have docker automatically restart
# containers. This is a job for systemd and unit files.
ExecStart=/usr/bin/docker -d -s=btrfs --bip=10.212.0.1/16 -r=false -H fd://
[Install]
WantedBy=multi-user.target
- name: docker-tcp.socket
command: start
content: |
[Unit]
Description=Docker Socket for Remote API
[Socket]
ListenStream=4243
Service=docker.service
BindIPv6Only=both
[Install]
WantedBy=sockets.target
- name: etcd.service
command: start
content: |
[Unit]
Description=etcd
[Service]
User=etcd
PermissionsStartOnly=true
Environment=ETCD_DATA_DIR=/var/lib/etcd ETCD_NAME=default
ExecStart=/usr/bin/etcd
Restart=always
RestartSec=10s
- name: fleet.service
command: start
content: |-
[Unit]
Description=fleet
[Service]
ExecStart=/usr/bin/fleet
[Install]
WantedBy=multi-user.target
- name: stop-reboot-manager.service
command: start
content: |
[Unit]
Description=stop update-engine-reboot-manager
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl stop update-engine-reboot-manager.service
ExecStartPost=/usr/bin/systemctl mask update-engine-reboot-manager.service
[Install]
WantedBy=multi-user.target
- name: seed-docker-images.service
command: start
content: |
[Unit]
Description=Seed Docker images used by Deis
Requires=docker.service
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'docker pull deis/slugrunner:latest'
[Install]
WantedBy=multi-user.target