Merged in oherrala/puppet (pull request #7)
This commit is contained in:
commit
c8314ec9a1
1 changed files with 6 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue