Commit 9865f826 by Czémán Arnold

vmdriver, storagedriver: fix salt errors when re-run

parent cd0ba607
...@@ -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:
......
...@@ -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:
......
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