aboutsummaryrefslogtreecommitdiff
path: root/manifests/xen.pp
blob: afaa59c9cf8267795f0d8af573d4c88bc50fd320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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",
	}

}