diff options
author | Micah Anderson <micah@riseup.net> | 2007-10-12 16:14:11 +0000 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2007-10-12 16:14:11 +0000 |
commit | 284b50a1d07310c8c10f1c1f953d1e979762c476 (patch) | |
tree | 3974da499c584648e3aefbb8be13270f3d90ff93 /manifests/xen.pp | |
download | puppet-virtual-284b50a1d07310c8c10f1c1f953d1e979762c476.tar.gz puppet-virtual-284b50a1d07310c8c10f1c1f953d1e979762c476.tar.bz2 |
add the virtual module
Diffstat (limited to 'manifests/xen.pp')
-rw-r--r-- | manifests/xen.pp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/manifests/xen.pp b/manifests/xen.pp new file mode 100644 index 0000000..afaa59c --- /dev/null +++ b/manifests/xen.pp @@ -0,0 +1,38 @@ +# virtual/xen.pp -- XEN specifica +# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at> +# See LICENSE for the full license granted to you. + +class munin::plugins::xen { + munin::remoteplugin { + xen_mem: + source => "puppet://$servername/virtual/munin/xen_mem", + config => "user root"; + xen_vm: + source => "puppet://$servername/virtual/munin/xen_vm", + config => "user root"; + } +} + +class xen::domain { + # install the special libc and parameters to enable it + $xen_ensure = $virtual ? { + 'xen0' => present, + 'xenu' => present, + default => 'absent' + } + + case $ensure { + 'absent': { err("xen::domain configured, but not detected") } + } + + package { libc6-xen: + ensure => $xen_ensure, + } + + config_file { + "/etc/ld.so.conf.d/nosegneg.conf": + ensure => $xen_ensure, + content => "hwcap 0 nosegneg\n", + } + +} |