Skip to content

Commit ff098e0

Browse files
committed
Migrate static data from hiera to init.pp
This allows us to get rid of one file and represents the data within the REFERENCE.md
1 parent ea54bd3 commit ff098e0

File tree

3 files changed

+110
-78
lines changed

3 files changed

+110
-78
lines changed

REFERENCE.md

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,24 @@ Data type: `Hash[String,Hash[String, Any]]`
105105
May be passed a resource hash suitable for passing directly into the
106106
``create_resources()`` function as called on ``systemd::service_limits``
107107

108+
Default value: `{}`
109+
108110
##### <a name="manage_resolved"></a>`manage_resolved`
109111

110112
Data type: `Boolean`
111113

112114
Manage the systemd resolver
113115

116+
Default value: ``false``
117+
114118
##### <a name="resolved_ensure"></a>`resolved_ensure`
115119

116120
Data type: `Enum['stopped','running']`
117121

118122
The state that the ``resolved`` service should be in
119123

124+
Default value: `'running'`
125+
120126
##### <a name="dns"></a>`dns`
121127

122128
Data type: `Optional[Variant[Array[String],String]]`
@@ -126,6 +132,8 @@ DNS requests are sent to one of the listed DNS servers in parallel to suitable
126132
per-link DNS servers acquired from systemd-networkd.service(8) or set at runtime
127133
by external applications. requires puppetlabs-inifile
128134

135+
Default value: ``undef``
136+
129137
##### <a name="fallback_dns"></a>`fallback_dns`
130138

131139
Data type: `Optional[Variant[Array[String],String]]`
@@ -134,88 +142,116 @@ A space-separated list of IPv4 and IPv6 addresses to use as the fallback DNS
134142
servers. Any per-link DNS servers obtained from systemd-networkd take
135143
precedence over this setting. requires puppetlabs-inifile
136144

145+
Default value: ``undef``
146+
137147
##### <a name="domains"></a>`domains`
138148

139149
Data type: `Optional[Variant[Array[String],String]]`
140150

141151
A space-separated list of domains host names or IP addresses to be used
142152
systemd-resolved take precedence over this setting.
143153

154+
Default value: ``undef``
155+
144156
##### <a name="llmnr"></a>`llmnr`
145157

146158
Data type: `Optional[Variant[Boolean,Enum['resolve']]]`
147159

148160
Takes a boolean argument or "resolve".
149161

162+
Default value: ``undef``
163+
150164
##### <a name="multicast_dns"></a>`multicast_dns`
151165

152166
Data type: `Optional[Variant[Boolean,Enum['resolve']]]`
153167

154168
Takes a boolean argument or "resolve".
155169

170+
Default value: ``undef``
171+
156172
##### <a name="dnssec"></a>`dnssec`
157173

158174
Data type: `Optional[Variant[Boolean,Enum['allow-downgrade']]]`
159175

160176
Takes a boolean argument or "allow-downgrade".
161177

178+
Default value: ``undef``
179+
162180
##### <a name="dnsovertls"></a>`dnsovertls`
163181

164-
Data type: `Optional[Variant[Boolean,Enum['yes', 'opportunistic', 'no']]]`
182+
Data type: `Variant[Boolean,Enum['yes', 'opportunistic', 'no']]`
165183

166184
Takes a boolean argument or one of "yes", "opportunistic" or "no". "true" corresponds to
167185
"opportunistic" and "false" (default) to "no".
168186

187+
Default value: ``false``
188+
169189
##### <a name="cache"></a>`cache`
170190

171-
Data type: `Optional[Variant[Boolean,Enum['no-negative']]]`
191+
Data type: `Variant[Boolean,Enum['no-negative']]`
172192

173193
Takes a boolean argument or "no-negative".
174194

195+
Default value: ``false``
196+
175197
##### <a name="dns_stub_listener"></a>`dns_stub_listener`
176198

177199
Data type: `Optional[Variant[Boolean,Enum['udp','tcp']]]`
178200

179201
Takes a boolean argument or one of "udp" and "tcp".
180202

203+
Default value: ``undef``
204+
181205
##### <a name="use_stub_resolver"></a>`use_stub_resolver`
182206

183207
Data type: `Boolean`
184208

185209
Takes a boolean argument. When "false" (default) it uses /run/systemd/resolve/resolv.conf
186210
as /etc/resolv.conf. When "true", it uses /run/systemd/resolve/stub-resolv.conf
187211

212+
Default value: ``false``
213+
188214
##### <a name="manage_networkd"></a>`manage_networkd`
189215

190216
Data type: `Boolean`
191217

192218
Manage the systemd network daemon
193219

220+
Default value: ``false``
221+
194222
##### <a name="networkd_ensure"></a>`networkd_ensure`
195223

196224
Data type: `Enum['stopped','running']`
197225

198226
The state that the ``networkd`` service should be in
199227

228+
Default value: `'running'`
229+
200230
##### <a name="manage_timesyncd"></a>`manage_timesyncd`
201231

202232
Data type: `Boolean`
203233

204234
Manage the systemd tiemsyncd daemon
205235

236+
Default value: ``false``
237+
206238
##### <a name="timesyncd_ensure"></a>`timesyncd_ensure`
207239

208240
Data type: `Enum['stopped','running']`
209241

210242
The state that the ``timesyncd`` service should be in
211243

244+
Default value: `'running'`
245+
212246
##### <a name="ntp_server"></a>`ntp_server`
213247

214248
Data type: `Optional[Variant[Array,String]]`
215249

216250
comma separated list of ntp servers, will be combined with interface specific
217251
addresses from systemd-networkd. requires puppetlabs-inifile
218252

253+
Default value: ``undef``
254+
219255
##### <a name="fallback_ntp_server"></a>`fallback_ntp_server`
220256

221257
Data type: `Optional[Variant[Array,String]]`
@@ -224,60 +260,80 @@ A space-separated list of NTP server host names or IP addresses to be used
224260
as the fallback NTP servers. Any per-interface NTP servers obtained from
225261
systemd-networkd take precedence over this setting. requires puppetlabs-inifile
226262

263+
Default value: ``undef``
264+
227265
##### <a name="manage_journald"></a>`manage_journald`
228266

229267
Data type: `Boolean`
230268

231269
Manage the systemd journald
232270

271+
Default value: ``true``
272+
233273
##### <a name="journald_settings"></a>`journald_settings`
234274

235275
Data type: `Systemd::JournaldSettings`
236276

237277
Config Hash that is used to configure settings in journald.conf
238278

279+
Default value: `{}`
280+
239281
##### <a name="manage_udevd"></a>`manage_udevd`
240282

241283
Data type: `Boolean`
242284

243285
Manage the systemd udev daemon
244286

287+
Default value: ``false``
288+
245289
##### <a name="udev_log"></a>`udev_log`
246290

247291
Data type: `Optional[Variant[Integer,String]]`
248292

249293
The value of /etc/udev/udev.conf udev_log
250294

295+
Default value: ``undef``
296+
251297
##### <a name="udev_children_max"></a>`udev_children_max`
252298

253299
Data type: `Optional[Integer]`
254300

255301
The value of /etc/udev/udev.conf children_max
256302

303+
Default value: ``undef``
304+
257305
##### <a name="udev_exec_delay"></a>`udev_exec_delay`
258306

259307
Data type: `Optional[Integer]`
260308

261309
The value of /etc/udev/udev.conf exec_delay
262310

311+
Default value: ``undef``
312+
263313
##### <a name="udev_event_timeout"></a>`udev_event_timeout`
264314

265315
Data type: `Optional[Integer]`
266316

267317
The value of /etc/udev/udev.conf event_timeout
268318

319+
Default value: ``undef``
320+
269321
##### <a name="udev_resolve_names"></a>`udev_resolve_names`
270322

271323
Data type: `Optional[Enum['early', 'late', 'never']]`
272324

273325
The value of /etc/udev/udev.conf resolve_names
274326

327+
Default value: ``undef``
328+
275329
##### <a name="udev_timeout_signal"></a>`udev_timeout_signal`
276330

277331
Data type: `Optional[Variant[Integer,String]]`
278332

279333
The value of /etc/udev/udev.conf timeout_signal
280334

335+
Default value: ``undef``
336+
281337
##### <a name="udev_rules"></a>`udev_rules`
282338

283339
Data type: `Hash`
@@ -293,12 +349,16 @@ Data type: `Boolean`
293349

294350
Manage the systemd logind
295351

352+
Default value: ``false``
353+
296354
##### <a name="logind_settings"></a>`logind_settings`
297355

298356
Data type: `Systemd::LogindSettings`
299357

300358
Config Hash that is used to configure settings in logind.conf
301359

360+
Default value: `{}`
361+
302362
##### <a name="loginctl_users"></a>`loginctl_users`
303363

304364
Data type: `Hash`
@@ -322,30 +382,38 @@ Data type: `Boolean`
322382

323383

324384

385+
Default value: ``false``
386+
325387
##### <a name="network_path"></a>`network_path`
326388

327389
Data type: `Stdlib::Absolutepath`
328390

329391
where all networkd files are placed in
330392

393+
Default value: `'/etc/systemd/network'`
394+
331395
##### <a name="manage_accounting"></a>`manage_accounting`
332396

333397
Data type: `Boolean`
334398

335399
when enabled, the different accounting options (network traffic, IO, CPU util...) are enabled for units
336400

401+
Default value: ``false``
402+
337403
##### <a name="accounting"></a>`accounting`
338404

339405
Data type: `Hash[String,String]`
340406

341-
Hash of the different accounting options. This highly depends on the used systemd version. The module provides sane defaults.
407+
Hash of the different accounting options. This highly depends on the used systemd version. The module provides sane defaults per operating system using Hiera.
342408

343409
##### <a name="purge_dropin_dirs"></a>`purge_dropin_dirs`
344410

345411
Data type: `Boolean`
346412

347413
When enabled, unused directories for dropin files will be purged
348414

415+
Default value: ``true``
416+
349417
### <a name="systemdtmpfiles"></a>`systemd::tmpfiles`
350418

351419
Update the systemd temp files

data/common.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)