Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
17
Merge Requests
1
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6fb670c8
authored
May 29, 2018
by
barni2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change conditions for xenial
parent
905f473d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
salt/vmdriver/init.sls
+1
-1
salt/vmdriver/libvirt.sls
+2
-2
No files found.
salt/vmdriver/init.sls
View file @
6fb670c8
...
...
@@ -53,7 +53,7 @@ vmdriver:
{% endif %}
- require_in:
- file: /etc/default/libvirt-bin
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian'
or grains['os'] == 'Ubuntu' and grains['oscodename'] == 'xenial'
%}
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' %}
- service: libvirtd
{% else %}
- file: /etc/apparmor.d/libvirt/TEMPLATE
...
...
salt/vmdriver/libvirt.sls
View file @
6fb670c8
...
...
@@ -15,7 +15,7 @@ libvirtconf:
file.append:
- text: libvirtd_opts="-d -l"
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian'
or grains['os'] == 'Ubuntu' and grains['oscodename'] == 'xenial'
%}
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' %}
libvirtd:
{% else %}
libvirt-bin:
...
...
@@ -68,7 +68,7 @@ vmdriver_semodule:
- file: /root/vmdriver.te
- pkg: selinux_pkgs
{% elif grains['os'] == 'Debian'
or grains['os'] == 'Ubuntu' and grains['oscodename'] == 'xenial'
%}
{% elif grains['os'] == 'Debian' %}
/usr/bin/kvm:
file.replace:
...
...
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