diff options
author | pietro <pietro@riseup.net> | 2009-05-08 02:59:08 -0700 |
---|---|---|
committer | pietro <pietro@riseup.net> | 2009-05-08 02:59:08 -0700 |
commit | 12c168e96e1ceefecaef9ac16b25937cc0333f22 (patch) | |
tree | 26f95ea0e2c6fc3b7abc881b7baa9feed49b0c65 /manifests | |
parent | 52ea7adc9f418741c1aa90e3e891d221ac325b6d (diff) | |
download | puppet-virtual-12c168e96e1ceefecaef9ac16b25937cc0333f22.tar.gz puppet-virtual-12c168e96e1ceefecaef9ac16b25937cc0333f22.tar.bz2 |
have a sane default for xen lvm vg's
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/xen.pp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/xen.pp b/manifests/xen.pp index f987c8a..12a7908 100644 --- a/manifests/xen.pp +++ b/manifests/xen.pp @@ -117,6 +117,10 @@ class xen::dom0::centos inherits xen::dom0::base { } class xen::dom0::debian inherits xen::dom0::base { + $real_xen_lvm => $xen_lvm ? { + '' => "vg0_${hostname}", + default => $xen_lvm, + } case $lsbdistcodename { lenny: { package { @@ -129,6 +133,7 @@ class xen::dom0::debian inherits xen::dom0::base { file { "/etc/xen-tools/xen-tools.conf": owner => root, group => 0, mode => 0644, - content => template("virtual/xen-tools.conf"); + content => template("virtual/xen-tools.conf"), + require => Package['xen-tools']; } } |