-
Notifications
You must be signed in to change notification settings - Fork 522
/
Copy pathdefaults.toml
218 lines (156 loc) · 5.85 KB
/
defaults.toml
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# Here we define a common set of default settings for most variants.
# A variant includes these by symlinking this file into its `defaults.d` directory.
# It can override these settings in any file listed after that in the directory.
# The structures, fields, and types here need to match those of the API model,
# as defined in src/VARIANT/mod.rs.
[settings]
motd = "Welcome to Bottlerocket!"
[metadata.settings.motd]
affected-services = ["motd"]
[services.motd]
configuration-files = ["motd"]
restart-commands = []
[configuration-files.motd]
path = "/etc/motd"
template-path = "/usr/share/templates/motd"
# Container runtime.
[services.containerd]
configuration-files = ["containerd-config-toml", "proxy-env"]
restart-commands = ["/bin/systemctl try-restart containerd.service"]
[configuration-files.containerd-config-toml]
path = "/etc/containerd/config.toml"
template-path = "/usr/share/templates/containerd-config-toml_basic"
# Container runtime settings.
[metadata.settings.container-runtime]
affected-services = ["containerd"]
# Host-container runtime
[services.host-containerd]
configuration-files = ["proxy-env"]
restart-commands = ["/bin/systemctl try-restart host-containerd.service"]
# Updates.
[settings.updates]
version-lock = "latest"
ignore-waves = false
[services.thar-be-updates]
configuration-files = ["thar-be-updates-toml"]
restart-commands = []
[services.updog]
configuration-files = ["updog-toml"]
restart-commands = []
[configuration-files.thar-be-updates-toml]
path = "/etc/thar-be-updates.toml"
template-path = "/usr/share/templates/thar-be-updates-toml"
[configuration-files.updog-toml]
path = "/etc/updog.toml"
template-path = "/usr/share/templates/updog-toml"
[metadata.settings.updates]
affected-services = ["updog", "thar-be-updates"]
seed.setting-generator = "bork seed"
# HostContainers
[services.host-containers]
configuration-files = ["host-ctr-toml", "host-containers-toml"]
restart-commands = ["/usr/bin/host-containers"]
[configuration-files.host-ctr-toml]
path = "/etc/host-containers/host-ctr.toml"
template-path = "/usr/share/templates/host-ctr-toml"
[configuration-files.host-containers-toml]
path = "/etc/host-containers/host-containers.toml"
template-path = "/usr/share/templates/host-containers-toml"
[metadata.settings.host-containers]
affected-services = ["host-containers"]
# Network
[configuration-files.proxy-env]
path = "/etc/network/proxy.env"
template-path = "/usr/share/templates/proxy-env"
[metadata.settings.network]
affected-services = ["containerd", "host-containerd", "host-containers", "updog"]
[metadata.settings.network.hostname]
affected-services = ["hostname", "hosts"]
setting-generator = "netdog generate-hostname"
[services.hostname]
configuration-files = ["hostname"]
restart-commands = ["/bin/systemctl try-restart set-hostname.service"]
[configuration-files.hostname]
path = "/etc/network/hostname.env"
template-path = "/usr/share/templates/hostname-env"
[metadata.settings.network.hosts]
affected-services = ["hosts"]
[services.hosts]
configuration-files = ["hosts"]
restart-commands = []
[configuration-files.hosts]
path = "/etc/hosts"
template-path = "/usr/share/templates/hosts"
# NTP
[settings.ntp]
time-servers = ["169.254.169.123", "2.amazon.pool.ntp.org"]
options = ["iburst"]
[services.ntp]
configuration-files = ["chrony-conf"]
restart-commands = ["/bin/systemctl try-reload-or-restart chronyd.service"]
[configuration-files.chrony-conf]
path = "/etc/chrony.conf"
template-path = "/usr/share/templates/chrony-conf"
[metadata.settings.ntp]
affected-services = ["ntp"]
# Kernel
[services.sysctl]
configuration-files = ["corndog-toml"]
restart-commands = ["/usr/bin/corndog sysctl"]
[metadata.settings.kernel.sysctl]
affected-services = ["sysctl"]
[metadata.settings.kernel.sysctl."vm/nr_hugepages"]
setting-generator = "corndog generate-hugepages-setting"
[services.kernel-modules]
configuration-files = ["modprobe-conf", "modules-load"]
restart-commands = ["/usr/bin/systemctl try-restart systemd-modules-load"]
[configuration-files.modprobe-conf]
path = "/etc/modprobe.d/modprobe.conf"
template-path = "/usr/share/templates/modprobe-conf"
[configuration-files.modules-load]
path = "/etc/modules-load.d/modules-load.conf"
template-path = "/usr/share/templates/modules-load"
[metadata.settings.kernel.modules]
affected-services = ["kernel-modules"]
[services.lockdown]
configuration-files = ["corndog-toml"]
restart-commands = ["/usr/bin/corndog lockdown"]
[metadata.settings.kernel.lockdown]
affected-services = ["lockdown"]
[configuration-files.corndog-toml]
path = "/etc/corndog.toml"
template-path = "/usr/share/templates/corndog-toml"
# Bootstrap Commands
[services.bootstrap-commands]
configuration-files = ["bootstrap-commands-toml"]
restart-commands = []
[metadata.settings.bootstrap-commands]
affected-services = ["bootstrap-commands"]
[configuration-files.bootstrap-commands-toml]
path = "/etc/bootstrap-commands/bootstrap-commands.toml"
template-path = "/usr/share/templates/bootstrap-commands-toml"
# Bootstrap Containers
[services.bootstrap-containers]
configuration-files = ["host-ctr-toml", "bootstrap-containers-toml"]
restart-commands = ["/usr/bin/bootstrap-containers create-containers"]
[metadata.settings.bootstrap-containers]
affected-services = ["bootstrap-containers"]
[configuration-files.bootstrap-containers-toml]
path = "/etc/bootstrap-containers/bootstrap-containers.toml"
template-path = "/usr/share/templates/bootstrap-containers-toml"
# Certdog
[services.pki]
configuration-files = ["certdog-toml"]
restart-commands = ["/usr/bin/certdog"]
# DNS
[metadata.settings.dns]
affected-services = ["dns"]
[services.dns]
configuration-files = ["netdog-toml"]
restart-commands = ["netdog write-resolv-conf"]
[configuration-files.netdog-toml]
path = "/etc/netdog.toml"
template-path = "/usr/share/templates/netdog-toml"
[configuration-files.certdog-toml]
path = "/etc/certdog.toml"
template-path = "/usr/share/templates/certdog-toml"