Puppet Class: libvirt::polkit
- Defined in:
- manifests/polkit.pp
Overview
Add a rule file allowing members of a group to use libvirt
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'manifests/polkit.pp', line 23
class libvirt::polkit (
Enum['present','absent'] $ensure = 'present',
Variant[String,Array[String]] $group = 'virtusers',
Integer[0,99] $priority = 10,
Polkit::Result $result = 'yes',
Boolean $local = true,
Boolean $active = true
) {
polkit::authorization::basic_policy { "Allow users in ${group} to use libvirt":
ensure => $ensure,
group => $group,
priority => $priority,
result => $result,
local => $local,
active => $active,
action_id => 'org.libvirt.unix.manage'
}
}
|