summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorRurik Ylä-Onnenvuori <ruriky@users.noreply.github.com>2016-10-31 13:03:21 +0100
committerRaphaël Pinson <github+aem1eeshi1@raphink.net>2016-10-31 13:03:21 +0100
commitec94e54f14c214a5423681e90b99d6e73094bfeb (patch)
treeebafae5277deb51aba355ee94516899626f5d5ba /manifests/init.pp
parentb2f44d4832a771dde6ebea86f70811de8b4c1f26 (diff)
Manage resource limits of services (#13)
User can configure resource limits for services started by systemd
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 5e6ad79..e669f09 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,4 +1,8 @@
-class systemd {
+# -- Class systemd
+# This module allows triggering systemd commands once for all modules
+class systemd (
+ $service_limits = {}
+){
Exec {
refreshonly => true,
@@ -15,4 +19,6 @@ class systemd {
command => 'systemd-tmpfiles --create',
}
+ create_resources('systemd::service_limits', $service_limits, {})
+
}