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