diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/vserver.pp | 3 |
1 files changed, 3 insertions, 0 deletions
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}"], } |