Use "default" case for CentOS/Redhat 6. Change file mode to be in

quotes.
This commit is contained in:
Ossi Herrala 2012-04-02 13:23:30 +00:00 committed by Ossi Herrala
parent e8263790fb
commit b2a5316efc

View file

@ -32,14 +32,14 @@ class libvirt::kvm inherits libvirt::client {
case operatingsystem {
centos,fedora: {
case $operatingsystemrelease {
'/5\.[8-9]': {
'/5\.[8-9]/': {
package { "kvm":
ensure => installed,
before => Service["libvirtd"],
require => [ User["qemu"], Group["qemu"] ],
}
}
'/6\.[0-9]': {
default: {
package { "qemu-kvm":
ensure => installed,
before => Service["libvirtd"],
@ -56,7 +56,7 @@ class libvirt::kvm inherits libvirt::client {
file { "/etc/libvirt/libvirtd.conf":
ensure => present,
mode => 0644,
mode => "0644",
owner => "root",
group => "root",
content => template("libvirt/libvirtd.conf.erb"),