File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 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':
280280
281281# ## service limits
282282
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.
284285
285286` ` ` puppet
286287systemd::service_limits { 'foo.service':
@@ -291,14 +292,21 @@ systemd::service_limits { 'foo.service':
291292}
292293` ` `
293294
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 :
295297
296298` ` ` 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+ },
299306}
300307` ` `
301308
309+
302310# ## machine-info (hostnamectl)
303311
304312You 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