More fixes to libvirt module. Now it should work with CentOS 5.8.
This commit is contained in:
parent
0ad355e6c9
commit
9e4fdebf09
1 changed files with 6 additions and 3 deletions
|
@ -29,11 +29,11 @@ class libvirt::client {
|
||||||
#
|
#
|
||||||
class libvirt::kvm inherits libvirt::client {
|
class libvirt::kvm inherits libvirt::client {
|
||||||
|
|
||||||
case operatingsystem {
|
case $operatingsystem {
|
||||||
centos,fedora: {
|
centos,fedora: {
|
||||||
case $operatingsystemrelease {
|
case $operatingsystemrelease {
|
||||||
'/5\.[0-9]+/': {
|
/5\..*/: {
|
||||||
package { "kvm":
|
package { ["kvm", "kmod-kvm"]:
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
before => Service["libvirtd"],
|
before => Service["libvirtd"],
|
||||||
require => [ User["qemu"], Group["qemu"] ],
|
require => [ User["qemu"], Group["qemu"] ],
|
||||||
|
@ -48,6 +48,9 @@ class libvirt::kvm inherits libvirt::client {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
default: {
|
||||||
|
fail("Operating system not supported")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !$libvirt_admingroup {
|
if !$libvirt_admingroup {
|
||||||
|
|
Loading…
Add table
Reference in a new issue