-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcloud-config.yml
More file actions
76 lines (71 loc) · 1.68 KB
/
cloud-config.yml
File metadata and controls
76 lines (71 loc) · 1.68 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
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
#cloud-config
hostname: HOSTNAME
users:
- name: core
groups:
- sudo
- docker
ssh-authorized-keys:
- SSH_KEY
coreos:
units:
- name: public.network
content: |
[Match]
Name=eth0
[Network]
Address=PUBLIC_IP
Gateway=GATEWAY
DNS=8.8.8.8
DNS=8.8.4.4
- name: private.network
content: |
[Match]
Name=ens4v1
[Network]
Address=PRIVATE_IP
- name: media-doroot.mount
command: start
content: |
[Mount]
What=/dev/vda
Where=/media/doroot
Type=ext4
- name: format-docker-store.service
command: start
content: |
[Unit]
Requires=media-doroot.mount
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/share/oem/bin/create-coreos-docker-store
- name: var-lib-docker.mount
command: start
content: |
[Unit]
Requires=format-docker-store.service
Before=docker.service
[Mount]
What=/dev/disk/by-label/docker
Where=/var/lib/docker
Type=btrfs
- name: coreos-setup-environment.service
command: restart
runtime: yes
content: |
[Unit]
Before=docker.service
[Service]
Type=oneshot
ExecStart=/usr/share/oem/bin/coreos-setup-environment /etc/environment
- name: coreos-apply-user-data.service
command: restart
runtime: yes
content: |
[Unit]
After=coreos-setup-environment.service
[Service]
EnvironmentFile=/etc/environment
Type=oneshot
ExecStart=/usr/share/oem/bin/coreos-apply-user-data