aboutsummaryrefslogtreecommitdiff
path: root/manifests/xen.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2007-10-12 16:14:11 +0000
committerMicah Anderson <micah@riseup.net>2007-10-12 16:14:11 +0000
commit284b50a1d07310c8c10f1c1f953d1e979762c476 (patch)
tree3974da499c584648e3aefbb8be13270f3d90ff93 /manifests/xen.pp
downloadpuppet-virtual-284b50a1d07310c8c10f1c1f953d1e979762c476.tar.gz
puppet-virtual-284b50a1d07310c8c10f1c1f953d1e979762c476.tar.bz2
add the virtual module
Diffstat (limited to 'manifests/xen.pp')
-rw-r--r--manifests/xen.pp38
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",
+ }
+
+}