From 8ada96750db97195b37d11c6756a27a138b41eca Mon Sep 17 00:00:00 2001 From: Roman Pertl Date: Tue, 3 Jan 2017 12:44:10 +0100 Subject: [PATCH] allow setting of qemu vnc password --- manifests/init.pp | 1 + templates/qemu.conf.erb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 14be7a5..98fe139 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -49,6 +49,7 @@ $unix_sock_dir = $::libvirt::params::unix_sock_dir, # qemu.conf options $qemu_vnc_listen = undef, + $qemu_vnc_password = undef, $qemu_vnc_sasl = undef, $qemu_vnc_tls = undef, $qemu_set_process_name = undef, diff --git a/templates/qemu.conf.erb b/templates/qemu.conf.erb index 2f183b2..5cbf03f 100644 --- a/templates/qemu.conf.erb +++ b/templates/qemu.conf.erb @@ -74,6 +74,9 @@ vnc_tls = 0 # example here before you set this. # # vnc_password = "XYZ12345" +<% if @qemu_vnc_password -%> +vnc_password = "<%= @qemu_vnc_password %>" +<% end -%> # Enable use of SASL encryption on the VNC server. This requires