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 {
|
class libvirt::client {
|
||||||
|
|
||||||
|
include user::system
|
||||||
|
realize(User["qemu"], Group["qemu"])
|
||||||
|
|
||||||
case $operatingsystem {
|
case $operatingsystem {
|
||||||
centos,fedora: {
|
centos,fedora: {
|
||||||
package { [ "libvirt", "virt-manager", "virt-viewer", ]:
|
package { [ "libvirt", "virt-manager", "virt-viewer", ]:
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
|
require => [ User["qemu"], Group["qemu"] ],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
@ -25,9 +29,6 @@ class libvirt::client {
|
||||||
#
|
#
|
||||||
class libvirt::kvm inherits libvirt::client {
|
class libvirt::kvm inherits libvirt::client {
|
||||||
|
|
||||||
include user::system
|
|
||||||
realize(User["qemu"], Group["qemu"])
|
|
||||||
|
|
||||||
package { "qemu-kvm":
|
package { "qemu-kvm":
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
before => Service["libvirtd"],
|
before => Service["libvirtd"],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue