Use "default" case for CentOS/Redhat 6. Change file mode to be in
quotes.
This commit is contained in:
parent
e8263790fb
commit
b2a5316efc
1 changed files with 3 additions and 3 deletions
|
@ -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"),
|
||||
|
|
Loading…
Add table
Reference in a new issue