Commit a3ff58ad by Bach Dániel

random fixes

parent 22d27218
......@@ -10,7 +10,8 @@
file.managed:
- source: salt://agentdriver/files/agentdriver.incron
- template: jinja
- user: {{ pillar['user'] }}
- user: root
- group: root
/etc/init/agentdriver.conf:
file.managed:
......@@ -18,10 +19,3 @@
- group: root
- template: jinja
- source: file:///home/{{ pillar['user'] }}/agentdriver/miscellaneous/agentdriver.conf
/var/lib/libvirt/serial:
file.directory:
- makedirs: True
- user: libvirt-qemu
- group: kvm
- mode: 755
......@@ -26,6 +26,11 @@ vmdriver:
- qemu-kvm
- qemu-utils
- require_in:
- file: /etc/default/libvirt-bin
- file: /etc/apparmor.d/libvirt/TEMPLATE
- file: /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper
- file: /var/lib/libvirt/serial
- augeas: libvirtconf
- service: libvirt-bin
- git: gitrepo_vmdriver
- virtualenv: virtualenv_vmdriver
......
......@@ -28,3 +28,18 @@ libvirt-bin:
- source: salt://vmdriver/files/usr.lib.libvirt.virt-aa-helper
- template: jinja
- mode: 644
apparmor:
service:
- reload: true
- running
- watch:
- file: /etc/apparmor.d/libvirt/TEMPLATE
- file: /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper
/var/lib/libvirt/serial:
file.directory:
- makedirs: True
- user: libvirt-qemu
- group: kvm
- mode: 755
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment