Skip to content

Commit 7deb3bd

Browse files
authored
Merge pull request #461 from ekohl/update-readme
Update README to reflect service_limits is deprecated
2 parents 3536f70 + 1dd2f84 commit 7deb3bd

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff 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
286287
systemd::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

304312
You can set elements of `/etc/machine-info` via the `machine_info_settings` parameter. These values are read by `hostnamectl`.

0 commit comments

Comments
 (0)