Create qemu user before installing libvirt
This commit is contained in:
parent
439aca9251
commit
6a5f513396
1 changed files with 5 additions and 4 deletions
|
@ -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"],
|
||||
|
|
Loading…
Add table
Reference in a new issue