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
9865f826
authored
Dec 02, 2017
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmdriver, storagedriver: fix salt errors when re-run
parent
cd0ba607
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
salt/storagedriver/init.sls
+12
-1
salt/vmdriver/init.sls
+3
-3
No files found.
salt/storagedriver/init.sls
View file @
9865f826
...
@@ -4,6 +4,13 @@ include:
...
@@ -4,6 +4,13 @@ include:
- storagedriver.configuration
- storagedriver.configuration
- storagedriver.nfs-server
- storagedriver.nfs-server
{% if grains['os_family'] == 'RedHat' %}
ev_repo_for_storagedriver:
pkg.installed:
- name: centos-release-qemu-ev
{% endif %}
storagedriver:
storagedriver:
pkg.installed:
pkg.installed:
- pkgs:
- pkgs:
...
@@ -14,7 +21,7 @@ storagedriver:
...
@@ -14,7 +21,7 @@ storagedriver:
- libmemcached-devel
- libmemcached-devel
- python-devel
- python-devel
- python-virtualenvwrapper
- python-virtualenvwrapper
- qemu-img
- qemu-img
-ev
- zlib-devel
- zlib-devel
{% else %}
{% else %}
- python-pip
- python-pip
...
@@ -27,6 +34,10 @@ storagedriver:
...
@@ -27,6 +34,10 @@ storagedriver:
- require_in:
- require_in:
- git: gitrepo_storagedriver
- git: gitrepo_storagedriver
- virtualenv: virtualenv_storagedriver
- virtualenv: virtualenv_storagedriver
{% if grains['os_family'] == 'RedHat' %}
- require:
- pkg: ev_repo_for_storagedriver
{% endif %}
storage:
storage:
service:
service:
...
...
salt/vmdriver/init.sls
View file @
9865f826
...
@@ -6,7 +6,7 @@ include:
...
@@ -6,7 +6,7 @@ include:
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat' %}
ev_repo:
ev_repo
_for_vmdriver
:
pkg.installed:
pkg.installed:
- name: centos-release-qemu-ev
- name: centos-release-qemu-ev
{% endif %}
{% endif %}
...
@@ -30,7 +30,7 @@ vmdriver:
...
@@ -30,7 +30,7 @@ vmdriver:
- libxslt-devel
- libxslt-devel
- python-devel
- python-devel
- python-virtualenvwrapper
- python-virtualenvwrapper
- qemu-img
- qemu-img
-ev
- zlib-devel
- zlib-devel
{% else %}
{% else %}
- qemu-kvm
- qemu-kvm
...
@@ -66,7 +66,7 @@ vmdriver:
...
@@ -66,7 +66,7 @@ vmdriver:
- virtualenv: virtualenv_vmdriver
- virtualenv: virtualenv_vmdriver
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat' %}
- require:
- require:
- pkg: ev_repo
- pkg: ev_repo_for_vmdriver
{% endif %}
{% endif %}
agentdriver_service:
agentdriver_service:
...
...
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