aboutsummaryrefslogtreecommitdiff
path: root/manifests/xen.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-12-15 13:32:09 -0500
committerMicah Anderson <micah@riseup.net>2010-12-15 13:32:09 -0500
commit6c130e10055d76c611d0fba44223c0b0ede93012 (patch)
treeed3080b434c47a9a90eb70efb6799cd7277e812c /manifests/xen.pp
parentaea276aa7416d7bf1277f97e9ca7449967e68140 (diff)
downloadpuppet-virtual-6c130e10055d76c611d0fba44223c0b0ede93012.tar.gz
puppet-virtual-6c130e10055d76c611d0fba44223c0b0ede93012.tar.bz2
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
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":