Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a3ff58ad
authored
Oct 31, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
random fixes
parent
22d27218
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
8 deletions
+22
-8
salt/agentdriver/configuration.sls
+2
-8
salt/vmdriver/init.sls
+5
-0
salt/vmdriver/libvirt.sls
+15
-0
No files found.
salt/agentdriver/configuration.sls
View file @
a3ff58ad
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
file.managed:
file.managed:
- source: salt://agentdriver/files/agentdriver.incron
- source: salt://agentdriver/files/agentdriver.incron
- template: jinja
- template: jinja
- user: {{ pillar['user'] }}
- user: root
- group: root
/etc/init/agentdriver.conf:
/etc/init/agentdriver.conf:
file.managed:
file.managed:
...
@@ -18,10 +19,3 @@
...
@@ -18,10 +19,3 @@
- group: root
- group: root
- template: jinja
- template: jinja
- source: file:///home/{{ pillar['user'] }}/agentdriver/miscellaneous/agentdriver.conf
- source: file:///home/{{ pillar['user'] }}/agentdriver/miscellaneous/agentdriver.conf
/var/lib/libvirt/serial:
file.directory:
- makedirs: True
- user: libvirt-qemu
- group: kvm
- mode: 755
salt/vmdriver/init.sls
View file @
a3ff58ad
...
@@ -26,6 +26,11 @@ vmdriver:
...
@@ -26,6 +26,11 @@ vmdriver:
- qemu-kvm
- qemu-kvm
- qemu-utils
- qemu-utils
- require_in:
- 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
- service: libvirt-bin
- git: gitrepo_vmdriver
- git: gitrepo_vmdriver
- virtualenv: virtualenv_vmdriver
- virtualenv: virtualenv_vmdriver
...
...
salt/vmdriver/libvirt.sls
View file @
a3ff58ad
...
@@ -28,3 +28,18 @@ libvirt-bin:
...
@@ -28,3 +28,18 @@ libvirt-bin:
- source: salt://vmdriver/files/usr.lib.libvirt.virt-aa-helper
- source: salt://vmdriver/files/usr.lib.libvirt.virt-aa-helper
- template: jinja
- template: jinja
- mode: 644
- 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment