Class libvirt::libvirt
In: /modules/libvirt/manifests/init.pp
Parent:

Class: libvirt

Install, enable and configure libvirt.

Parameters:

 $defaultnetwork:
   Whether the default network for NAT should be enabled. Default: false
 $virtinst:
   Install the python-virtinst package, to get virt-install. Default: true
 $qemu:
   Install the qemu-kvm package, required for KVM. Default: true
 $mdns_adv,
 $unix_sock_group,
 $unix_sock_ro_perms,
 $unix_sock_rw_perms,
 $unix_sock_dir:
   Options for libvirtd.conf. Default: unchanged original values

Sample Usage :

 include libvirt

Resources

Resources

File["/etc/libvirt/libvirtd.conf"]
   content => template("libvirt/libvirtd.conf.erb")
   notify => Service["libvirtd"]
   require => Package["libvirt"]
Package[libvirt.$::architecture]
   alias => "libvirt"
   ensure => installed
Service["libvirtd"]
   enable => true
   ensure => running
   hasstatus => true
   require => Package["libvirt"]

[Validate]