From 6c130e10055d76c611d0fba44223c0b0ede93012 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 15 Dec 2010 13:32:09 -0500 Subject: add a $lsbdistcodename case for the xen-linux-system packages add a squeeze version update the xen-linux-system packages for lenny to be the -2 version --- manifests/xen.pp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'manifests') 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": -- cgit v1.2.3