aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-08-15 17:46:30 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-08-15 17:46:30 -0300
commit0ba53cd88063dff98b0aaba7b9e75894bda1e010 (patch)
tree77318a686152a62fe22631a2c6d832c33f521c36 /manifests
parent009a3ad9745197d89643f02ed563d350ac3c13f0 (diff)
downloadpuppet-virtual-0ba53cd88063dff98b0aaba7b9e75894bda1e010.tar.gz
puppet-virtual-0ba53cd88063dff98b0aaba7b9e75894bda1e010.tar.bz2
Ensure parameter at vs_rlimit
Diffstat (limited to 'manifests')
-rw-r--r--manifests/vserver.pp3
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}"],
}