From 9e4fdebf099b146429b9037a3ba4e7e5a6b06916 Mon Sep 17 00:00:00 2001 From: Ossi Herrala Date: Thu, 5 Apr 2012 07:45:44 +0000 Subject: [PATCH] More fixes to libvirt module. Now it should work with CentOS 5.8. --- libvirt/manifests/init.pp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libvirt/manifests/init.pp b/libvirt/manifests/init.pp index 051e949..eab023f 100644 --- a/libvirt/manifests/init.pp +++ b/libvirt/manifests/init.pp @@ -29,11 +29,11 @@ class libvirt::client { # class libvirt::kvm inherits libvirt::client { - case operatingsystem { + case $operatingsystem { centos,fedora: { case $operatingsystemrelease { - '/5\.[0-9]+/': { - package { "kvm": + /5\..*/: { + package { ["kvm", "kmod-kvm"]: ensure => installed, before => Service["libvirtd"], require => [ User["qemu"], Group["qemu"] ], @@ -48,6 +48,9 @@ class libvirt::kvm inherits libvirt::client { } } } + default: { + fail("Operating system not supported") + } } if !$libvirt_admingroup {