summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-21 15:26:11 (GMT)
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-22 12:46:31 (GMT)
commitcb392805e57c0df9673b87702c3e4d30dc3f604f (patch)
tree684f12f8df7b71d588f492eaa8bcf6ed61678628
parentcef0559c7367fc71619e0d68b4e4613a1dd03ea5 (diff)
downloaddefinitions-cb392805e57c0df9673b87702c3e4d30dc3f604f.tar.gz
Create libvirt group and configure libvirtd.conf to allow R and W from its sockets
-rw-r--r--strata/virtualization/libvirt.morph8
1 files changed, 8 insertions, 0 deletions
diff --git a/strata/virtualization/libvirt.morph b/strata/virtualization/libvirt.morph
index af9183f..e6d348b 100644
--- a/strata/virtualization/libvirt.morph
+++ b/strata/virtualization/libvirt.morph
@@ -21,3 +21,11 @@ configure-commands:
--without-storage-disk --with-storage-rbd --without-storage-sheepdog \
--without-storage-gluster --without-wireshark-dissector \
--prefix="$PREFIX"
+system-integration:
+ libvirt-misc:
+ 01-addgroup:
+ - groupadd libvirt
+ 02-setup_libvirtconf:
+ - sed -i 's/#unix_sock_group = "libvirt"/unix_sock_group = "libvirt"/' /etc/libvirt/libvirtd.conf
+ - sed -i 's/#unix_sock_rw_perms = "0770"/unix_sock_rw_perms = "0770"/' /etc/libvirt/libvirtd.conf
+ - sed -i 's/#unix_sock_ro_perms = "0777"/unix_sock_ro_perms = "0777"/' /etc/libvirt/libvirtd.conf