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 {
|
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"),
|
||||||
|
|
Loading…
Add table
Reference in a new issue