forked from bottlerocket-os/bottlerocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaults.toml
151 lines (107 loc) · 3.86 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
# 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"
# Host-container runtime
[services.host-containerd]
configuration-files = ["proxy-env"]
restart-commands = ["/bin/systemctl try-restart host-containerd.service"]
# Updates.
[settings.updates]
targets-base-url = "https://updates.bottlerocket.aws/targets/"
version-lock = "latest"
ignore-waves = false
[metadata.settings.updates.metadata-base-url]
setting-generator = "schnauzer settings.updates.metadata-base-url"
template = "https://updates.bottlerocket.aws/2020-07-07/{{ os.variant_id }}/{{ os.arch }}/"
[services.updog]
configuration-files = ["updog-toml"]
restart-commands = []
[configuration-files.updog-toml]
path = "/etc/updog.toml"
template-path = "/usr/share/templates/updog-toml"
[metadata.settings.updates]
affected-services = ["updog"]
seed.setting-generator = "bork seed"
# HostContainers
[services.host-containers]
configuration-files = ["host-ctr-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"
[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"]
[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"
[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"]
[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 = ["chronyd"]
# Kernel
[services.sysctl]
configuration-files = []
restart-commands = ["/usr/bin/corndog sysctl"]
[metadata.settings.kernel.sysctl]
affected-services = ["sysctl"]
[services.lockdown]
configuration-files = []
restart-commands = ["/usr/bin/corndog lockdown"]
[metadata.settings.kernel.lockdown]
affected-services = ["lockdown"]
# Bootstrap Containers
[services.bootstrap-containers]
configuration-files = ["host-ctr-toml"]
restart-commands = ["/usr/bin/bootstrap-containers create-containers"]
[metadata.settings.bootstrap-containers]
affected-services = ["bootstrap-containers"]
# Certdog
[services.pki]
configuration-files = []
restart-commands = ["/usr/bin/certdog"]
[metadata.settings.pki]
affected-services = ["pki"]