diff options
author | drebs <drebs@riseup.net> | 2010-07-15 20:24:30 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2010-07-15 20:24:30 -0300 |
commit | d77b287fae09f728747f12dcdc6ce7e243974189 (patch) | |
tree | 045acfaf4d3e3649403158ddd5afed041086acd2 /manifests | |
parent | b9f9616f43fa277291916e5bc4e2ef2597138a4f (diff) | |
download | puppet-virtual-d77b287fae09f728747f12dcdc6ce7e243974189.tar.gz puppet-virtual-d77b287fae09f728747f12dcdc6ce7e243974189.tar.bz2 |
Adding vserver_vdirbase config.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/vserver.pp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp index 89901a4..adf48e8 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -15,6 +15,10 @@ class vserver::host { default => latest, } + case $vserver_vdirbase { + '': { $vserver_vdirbase = "/var/lib/vservers" } + } + package { "util-vserver": ensure => $utilvserver_version; @@ -38,6 +42,14 @@ class vserver::host { mode => 0755, owner => root, group => root, require => [ Package['util-vserver'], Package[debootstrap]]; + "/etc/vservers/.default/vdirbase": + ensure => $vserver_vdirbase, + require => File[$vserver_vdirbase]; + + "$vserver_vdirbase": + ensure => directory, + mode => 000, owner => root, group => root; + # perhaps we should use hashify. # but i'm commenting this out until we learn how to properly use in case we want to use it. #"/etc/cron.daily/vserver-hashify": @@ -135,7 +147,7 @@ define vs_create($in_domain, $context, $legacy = false, $distro = 'etch', false: { exec { "/usr/local/bin/build_vserver \"${vs_name}\" ${context} ${distro} ${debootstrap_mirror} ${vs_hostname} ${vs_interface} ${memory_limit}": creates => "/etc/vservers/${vs_name}", - require => File["/usr/local/bin/build_vserver"], + require => File["/usr/local/bin/build_vserver","/etc/vservers/.default/vdirbase"], alias => "vs_create_${vs_name}", timeout => "-1", } |