Merge tmakinen/puppet
Conflicts: dovecot/manifests/init.pp libvirt/manifests/init.pp munin/manifests/init.pp puppet/manifests/init.pp tftp/manifests/init.pp
This commit is contained in:
commit
98767cfb2a
45 changed files with 5517 additions and 156 deletions
|
@ -35,8 +35,33 @@ class libvirt::client {
|
|||
# $libvirt_admingroup:
|
||||
# Group which has access to system libvirtd.
|
||||
#
|
||||
# $libvirt_guest_on_boot
|
||||
# Action to taken on host boot [start, ignore] (default: start)
|
||||
#
|
||||
# $libvirt_guest_on_shutdown
|
||||
# Action to taken on host shutdown [suspend, shutdown] (default: suspend)
|
||||
#
|
||||
# $libvirt_parallel_shutdown
|
||||
# If set to non-zero, shutdown will suspend guests concurrently. (default: 0)
|
||||
#
|
||||
class libvirt::kvm inherits libvirt::client {
|
||||
|
||||
if !$libvirt_admingroup {
|
||||
$libvirt_admingroup = "root"
|
||||
}
|
||||
|
||||
if !$libvirt_guest_on_boot {
|
||||
$libvirt_guest_on_boot = "start"
|
||||
}
|
||||
|
||||
if !$libvirt_guest_on_shutdown {
|
||||
$libvirt_guest_on_shutdown = "suspend"
|
||||
}
|
||||
|
||||
if !$libvirt_parallel_shutdown {
|
||||
$libvirt_parallel_shutdown = 0
|
||||
}
|
||||
|
||||
case $::operatingsystem {
|
||||
"centos","redhat": {
|
||||
case $::operatingsystemrelease {
|
||||
|
@ -58,6 +83,14 @@ class libvirt::kvm inherits libvirt::client {
|
|||
}
|
||||
}
|
||||
}
|
||||
file { "/etc/sysconfig/libvirt-guests":
|
||||
ensure => present,
|
||||
mode => "0644",
|
||||
owner => "root",
|
||||
group => "root",
|
||||
content => template("libvirt/sysconfig-libvirt-guests.erb"),
|
||||
require => Package["libvirt"],
|
||||
}
|
||||
}
|
||||
"fedora": {
|
||||
package { "qemu-kvm":
|
||||
|
@ -74,10 +107,6 @@ class libvirt::kvm inherits libvirt::client {
|
|||
}
|
||||
}
|
||||
|
||||
if !$libvirt_admingroup {
|
||||
$libvirt_admingroup = "root"
|
||||
}
|
||||
|
||||
file { "/etc/libvirt/libvirtd.conf":
|
||||
ensure => present,
|
||||
mode => "0644",
|
||||
|
@ -92,6 +121,5 @@ class libvirt::kvm inherits libvirt::client {
|
|||
ensure => running,
|
||||
enable => true,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue