diff options
author | drebs <drebs@riseup.net> | 2010-03-15 16:25:43 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2010-03-15 16:25:43 -0300 |
commit | c209466c4d4ae022591b091d766f296f47fda0f2 (patch) | |
tree | f36491d6944e93732bb1b8b51dd0693780155dee /manifests | |
parent | 8951c1cc8d2b9958ca556ae41a67ae775a65e4ee (diff) | |
download | puppet-virtual-c209466c4d4ae022591b091d766f296f47fda0f2.tar.gz puppet-virtual-c209466c4d4ae022591b091d766f296f47fda0f2.tar.bz2 |
Adding VIRT_MEM flags to vservers with limited memory.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/vserver.pp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp index 63053a3..7a0db8e 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -148,6 +148,7 @@ define vs_create($in_domain, $context, $legacy = false, $distro = 'etch', file { "/etc/vservers/${vs_name}/rlimits": ensure => directory, mode => 0755, owner => root, group => root, + require => File["/etc/vservers/${vs_name}"], } file { "/etc/vservers/${vs_name}/rlimits/rss.hard": mode => 0644, owner => root, group => root, @@ -159,6 +160,11 @@ define vs_create($in_domain, $context, $legacy = false, $distro = 'etch', content => template("virtual/rss.soft.erb"), require => File["/etc/vservers/${vs_name}/rlimits"], } + file { "/etc/vservers/${vs_name}/flags": + mode => 0644, owner => root, group => root, + content => template("virtual/flags.erb"), + require => File["/etc/vservers/${vs_name}"], + } } } } |