forked from JeanMertz/terraform-dcos
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathpublic_slave_user_data.yml
204 lines (200 loc) · 5.67 KB
/
public_slave_user_data.yml
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
#cloud-config
"coreos":
"units":
- "command": |-
start
"content": |
[Unit]
Description=AWS Setup: Formats the /var/lib ephemeral drive
Before=var-lib.mount dbus.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/bash -c "(blkid -t TYPE=ext4 | grep xvdb) || (/usr/sbin/mkfs.ext4 -F /dev/xvdb)"
"name": |-
format-var-lib-ephemeral.service
- "command": |-
start
"content": |
[Unit]
Description=AWS Setup: Mount /var/lib
Before=dbus.service
[Mount]
What=/dev/xvdb
Where=/var/lib
Type=ext4
"name": |-
var-lib.mount
- "command": |-
stop
"mask": !!bool |-
true
"name": |-
etcd.service
- "command": |-
stop
"mask": !!bool |-
true
"name": |-
update-engine.service
- "command": |-
stop
"mask": !!bool |-
true
"name": |-
locksmithd.service
- "command": |-
stop
"name": |-
systemd-resolved.service
- "command": |-
restart
"name": |-
systemd-journald.service
- "command": |-
restart
"name": |-
docker.service
- "command": |-
start
"content": |
[Unit]
Before=dcos.target
[Service]
Type=oneshot
StandardOutput=journal+console
StandardError=journal+console
ExecStartPre=/usr/bin/mkdir -p /etc/profile.d
ExecStart=/usr/bin/ln -sf /opt/mesosphere/environment.export /etc/profile.d/dcos.sh
"name": |-
dcos-link-env.service
- "content": |
[Unit]
Description=Pkgpanda: Download DC/OS to this host.
After=network-online.target
Wants=network-online.target
ConditionPathExists=!/opt/mesosphere/
[Service]
Type=oneshot
StandardOutput=journal+console
StandardError=journal+console
ExecStartPre=/usr/bin/curl --keepalive-time 2 -fLsSv --retry 20 -Y 100000 -y 60 -o /tmp/bootstrap.tar.xz ${dcos_base_download_url}/bootstrap/${bootstrap_id}.bootstrap.tar.xz
ExecStartPre=/usr/bin/mkdir -p /opt/mesosphere
ExecStart=/usr/bin/tar -axf /tmp/bootstrap.tar.xz -C /opt/mesosphere
ExecStartPost=-/usr/bin/rm -f /tmp/bootstrap.tar.xz
"name": |-
dcos-download.service
- "command": |-
start
"content": |
[Unit]
Description=Pkgpanda: Specialize DC/OS for this host.
Requires=dcos-download.service
After=dcos-download.service
[Service]
Type=oneshot
StandardOutput=journal+console
StandardError=journal+console
EnvironmentFile=/opt/mesosphere/environment
ExecStart=/opt/mesosphere/bin/pkgpanda setup --no-block-systemd
[Install]
WantedBy=multi-user.target
"enable": !!bool |-
true
"name": |-
dcos-setup.service
"update":
"reboot-strategy": |-
off
"write_files":
- "content": |
${dcos_base_download_url}
"owner": |-
root
"path": |-
/etc/mesosphere/setup-flags/repository-url
"permissions": |-
0644
- "content": |
${cluster_packages}
"owner": |-
root
"path": |-
/etc/mesosphere/setup-flags/cluster-packages.json
"permissions": |-
0644
- "content": |
[Journal]
MaxLevelConsole=warning
RateLimitInterval=1s
RateLimitBurst=20000
"owner": |-
root
"path": |-
/etc/systemd/journald.conf.d/dcos.conf
"permissions": |-
0644
- "content": |
rexray:
loglevel: info
modules:
default-admin:
host: tcp://127.0.0.1:61003
storageDrivers:
- ec2
volume:
unmount:
ignoreusedcount: true
"path": |-
/etc/rexray/config.yml
"permissions": |-
0644
- "content": |
MESOS_CLUSTER=${stack_name}
"path": |-
/etc/mesosphere/setup-packages/dcos-provider-aws--setup/etc/mesos-master-provider
- "content": |
ADMINROUTER_ACTIVATE_AUTH_MODULE=${authentication_enabled}
"path": |-
/etc/mesosphere/setup-packages/dcos-provider-aws--setup/etc/adminrouter.env
- "content": |
com.netflix.exhibitor.s3.access-key-id=${aws_access_key_id}
com.netflix.exhibitor.s3.access-secret-key=${aws_secret_access_key}
"path": |-
/etc/mesosphere/setup-packages/dcos-provider-aws--setup/etc/exhibitor.properties
- "content": |
MASTER_SOURCE=exhibitor_uri
EXHIBITOR_URI=http://${internal_master_lb_dns_name}:8181/exhibitor/v1/cluster/status
EXHIBITOR_ADDRESS=${internal_master_lb_dns_name}
RESOLVERS=${fallback_dns}
"path": |-
/etc/mesosphere/setup-packages/dcos-provider-aws--setup/etc/dns_config
- "content": |
EXHIBITOR_BACKEND=AWS_S3
AWS_REGION=${aws_region}
AWS_S3_BUCKET=${exhibitor_s3_bucket}
AWS_S3_PREFIX=${stack_name}
"path": |-
/etc/mesosphere/setup-packages/dcos-provider-aws--setup/etc/exhibitor
- "content": |
{"uiConfiguration":{"plugins":{"banner":{"enabled":false,"backgroundColor":"#1E232F","foregroundColor":"#FFFFFF","headerTitle":null,"headerContent":null,"footerContent":null,"imagePath":null,"dismissible":null},"branding":{"enabled":false},"external-links": {"enabled": false},
"authentication":{"enabled":false},
"oauth":{"enabled":${authentication_enabled},"authHost":"https://dcos.auth0.com"},
"tracking":{"enabled":true}}}}
"path": |-
/etc/mesosphere/setup-packages/dcos-provider-aws--setup/etc/ui-config.json
- "content": |
INTERNAL_MASTER_LB_DNSNAME=${internal_master_lb_dns_name}
MASTER_LB_DNSNAME=${public_lb_dns_name}
"path": |-
/etc/mesosphere/setup-packages/dcos-provider-aws--setup/etc/aws_dnsnames
- "content": |-
{}
"path": |-
/etc/mesosphere/setup-packages/dcos-provider-aws--setup/pkginfo.json
- "content": ""
"path": |-
/etc/mesosphere/roles/slave_public
- "content": ""
"path": |-
/etc/mesosphere/roles/aws