From 0ba53cd88063dff98b0aaba7b9e75894bda1e010 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 15 Aug 2012 17:46:30 -0300 Subject: Ensure parameter at vs_rlimit --- manifests/vserver.pp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'manifests/vserver.pp') diff --git a/manifests/vserver.pp b/manifests/vserver.pp index cd420c0..5217206 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -641,6 +641,7 @@ define vs_rlimit($vserver, $limit, $soft = '', $hard = '', $min = '', $ensure = file { "/etc/vservers/${vserver}/rlimits/$limit.soft": mode => 0644, owner => root, group => root, content => "$soft\n", + ensure => $ensure, require => File["/etc/vservers/${vserver}/rlimits"], notify => Exec["vs_restart_${vserver}"], } @@ -648,6 +649,7 @@ define vs_rlimit($vserver, $limit, $soft = '', $hard = '', $min = '', $ensure = file { "/etc/vservers/${vserver}/rlimits/$limit.hard": mode => 0644, owner => root, group => root, content => "$hard\n", + ensure => $ensure, require => File["/etc/vservers/${vserver}/rlimits"], notify => Exec["vs_restart_${vserver}"], } @@ -655,6 +657,7 @@ define vs_rlimit($vserver, $limit, $soft = '', $hard = '', $min = '', $ensure = file { "/etc/vservers/${vserver}/rlimits/$limit.min": mode => 0644, owner => root, group => root, content => "$min\n", + ensure => $ensure, require => File["/etc/vservers/${vserver}/rlimits"], notify => Exec["vs_restart_${vserver}"], } -- cgit v1.2.3