aboutsummaryrefslogtreecommitdiff
path: root/manifests/xen.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/xen.pp')
-rw-r--r--manifests/xen.pp17
1 files changed, 14 insertions, 3 deletions
diff --git a/manifests/xen.pp b/manifests/xen.pp
index 27504bb..6fc3ba5 100644
--- a/manifests/xen.pp
+++ b/manifests/xen.pp
@@ -87,10 +87,21 @@ class xen::domain::centos inherits xen::domain::base {
}
class xen::domain::debian inherits xen::domain::base {
- $xen_linux_system = $architecture ? {
- amd64 => "xen-linux-system-2.6.26-1-xen-amd64",
- i386 => "xen-linux-system-2.6.26-1-xen-686"
+ case $lsbdistcodename {
+ "lenny": {
+ $xen_linux_system = $architecture ? {
+ amd64 => "xen-linux-system-2.6.26-2-xen-amd64",
+ i386 => "xen-linux-system-2.6.26-2-xen-686"
+ }
+ }
+ "squeeze": {
+ $xen_linux_system = $architecture ? {
+ amd64 => "xen-linux-system-2.6.32-5-xen-amd64",
+ i386 => "xen-linux-system-2.6.32-5-xen-686"
+ }
+ }
}
+}
package {
"$xen_linux_system":