KVM support for CentOS 5 (5.8, maybe 5.9 if such thing comes out).
This commit is contained in:
parent
2e15368940
commit
e8263790fb
1 changed files with 20 additions and 5 deletions
|
@ -29,10 +29,25 @@ class libvirt::client {
|
|||
#
|
||||
class libvirt::kvm inherits libvirt::client {
|
||||
|
||||
package { "qemu-kvm":
|
||||
ensure => installed,
|
||||
before => Service["libvirtd"],
|
||||
require => [ User["qemu"], Group["qemu"] ],
|
||||
case operatingsystem {
|
||||
centos,fedora: {
|
||||
case $operatingsystemrelease {
|
||||
'/5\.[8-9]': {
|
||||
package { "kvm":
|
||||
ensure => installed,
|
||||
before => Service["libvirtd"],
|
||||
require => [ User["qemu"], Group["qemu"] ],
|
||||
}
|
||||
}
|
||||
'/6\.[0-9]': {
|
||||
package { "qemu-kvm":
|
||||
ensure => installed,
|
||||
before => Service["libvirtd"],
|
||||
require => [ User["qemu"], Group["qemu"] ],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if !$libvirt_admingroup {
|
||||
|
@ -41,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