diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-08-15 17:46:30 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-08-15 17:46:30 -0300 |
commit | 0ba53cd88063dff98b0aaba7b9e75894bda1e010 (patch) | |
tree | 77318a686152a62fe22631a2c6d832c33f521c36 /manifests/vserver.pp | |
parent | 009a3ad9745197d89643f02ed563d350ac3c13f0 (diff) | |
download | puppet-virtual-0ba53cd88063dff98b0aaba7b9e75894bda1e010.tar.gz puppet-virtual-0ba53cd88063dff98b0aaba7b9e75894bda1e010.tar.bz2 |
Ensure parameter at vs_rlimit
Diffstat (limited to 'manifests/vserver.pp')
-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}"], } |