File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,8 @@ systemd::timer { 'daily.timer':
280
280
281
281
# ## service limits
282
282
283
- Manage soft and hard limits on various resources for executed processes.
283
+ It's possible to ensure soft and hard limits on various resources for executed processes.
284
+ Previously `systemd::service_limits` was provided, but this is deprecated and will be removed in the next version.
284
285
285
286
` ` ` puppet
286
287
systemd::service_limits { 'foo.service':
@@ -291,14 +292,21 @@ systemd::service_limits { 'foo.service':
291
292
}
292
293
` ` `
293
294
294
- Or provide the configuration file yourself. Systemd reloading and restarting of the service are handled by the module.
295
+ The replacement is to use the `systemd::manage_dropin` defined type directly.
296
+ To migrate from the above example, use the following :
295
297
296
298
` ` ` puppet
297
- systemd::service_limits { 'foo.service':
298
- source => "puppet:///modules/${module_name}/foo.conf",
299
+ systemd::manage_dropin { 'foo.service-90-limits.conf':
300
+ unit => 'foo.service',
301
+ filename => '90-limits.conf',
302
+ limits => {
303
+ 'LimitNOFILE' => 8192,
304
+ 'LimitNPROC' => 16384,
305
+ },
299
306
}
300
307
` ` `
301
308
309
+
302
310
# ## machine-info (hostnamectl)
303
311
304
312
You can set elements of `/etc/machine-info` via the `machine_info_settings` parameter. These values are read by `hostnamectl`.
You can’t perform that action at this time.
0 commit comments