diff --git a/libvirt/manifests/init.pp b/libvirt/manifests/init.pp index 3b81982..681a653 100644 --- a/libvirt/manifests/init.pp +++ b/libvirt/manifests/init.pp @@ -2,10 +2,14 @@ # class libvirt::client { + include user::system + realize(User["qemu"], Group["qemu"]) + case $operatingsystem { centos,fedora: { package { [ "libvirt", "virt-manager", "virt-viewer", ]: - ensure => installed, + ensure => installed, + require => [ User["qemu"], Group["qemu"] ], } } default: { @@ -25,9 +29,6 @@ class libvirt::client { # class libvirt::kvm inherits libvirt::client { - include user::system - realize(User["qemu"], Group["qemu"]) - package { "qemu-kvm": ensure => installed, before => Service["libvirtd"],