Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new config capabilities for qemu #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
$qemu_set_process_name = undef,
$qemu_user = undef,
$qemu_group = undef,
$qemu_cgroup_device_acl = undef,
$qemu_clear_emulator_capabilities = undef,
# sasl2 options
$sasl2_libvirt_mech_list = undef,
$sasl2_libvirt_keytab = undef,
Expand Down
6 changes: 6 additions & 0 deletions templates/qemu.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ group = "<%= @qemu_group %>"
# "/dev/rtc", "/dev/hpet",
#]

<% if @qemu_cgroup_device_acl -%>
cgroup_device_acl = [ "<%= @qemu_cgroup_device_acl.join('", "') %>" ]
<% end -%>

# The default format for Qemu/KVM guest save images is raw; that is, the
# memory from the domain is dumped out directly to a file. If you have
Expand Down Expand Up @@ -302,6 +305,9 @@ group = "<%= @qemu_group %>"
#
# clear_emulator_capabilities = 1

<% if @qemu_clear_emulator_capabilities -%>
clear_emulator_capabilities = <%= @qemu_clear_emulator_capabilities %>
<% end -%>

# If allow_disk_format_probing is enabled, libvirt will probe disk
# images to attempt to identify their format, when not otherwise
Expand Down