class virtual::xen::domain::debian inherits xen::domain::base { 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|x86_64)/ => "xen-linux-system-2.6.32-5-xen-amd64", i386 => "xen-linux-system-2.6.32-5-xen-686" } } } package { "$xen_linux_system": ensure => present, alias => "xen-linux-system"; } }