From 5d15de1159afdd20e4c8c8106ae4c25bf1083b11 Mon Sep 17 00:00:00 2001 From: drebs Date: Sat, 2 Oct 2010 19:21:03 -0300 Subject: fixing virt_mem cflag --- manifests/vserver.pp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/manifests/vserver.pp b/manifests/vserver.pp index 6297234..33a5557 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -172,10 +172,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 => Exec["vs_create_${vs_name}"], + + vs_cflags { "${vs_name}-virt_mem": + vserver => $vs_name, + flag => "virt_mem", + ensure => $ensure, } } } -- cgit v1.2.3