From ec94e54f14c214a5423681e90b99d6e73094bfeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rurik=20Yl=C3=A4-Onnenvuori?= Date: Mon, 31 Oct 2016 13:03:21 +0100 Subject: Manage resource limits of services (#13) User can configure resource limits for services started by systemd --- manifests/init.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'manifests/init.pp') 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, {}) + } -- cgit v1.2.3