2
0

Compact salt-cloud pip.installed instructions

This commit is contained in:
Gilles Dartiguelongue 2017-04-10 09:54:56 +02:00
parent 85597b3326
commit dce9bea40b

View File

@ -8,20 +8,14 @@
python-pip: python-pip:
pkg.installed pkg.installed
pycrypto: salt-cloud-pip-packages:
pip.installed:
- require:
- pkg: python-pip
{% if grains['os_family'] not in ['Debian', 'RedHat'] %}
crypto:
pip.installed:
- require:
- pkg: python-pip
{% endif %}
apache-libcloud:
pip.installed: pip.installed:
- pkgs:
- apache-libcloud
{%- if grains['os_family'] not in ['Debian', 'RedHat'] %}
- crypto
{%- endif %}
- pycrypto
- require: - require:
- pkg: python-pip - pkg: python-pip
{%- endif %} {%- endif %}
@ -32,11 +26,7 @@ salt-cloud:
- name: {{ salt_settings.salt_cloud }} - name: {{ salt_settings.salt_cloud }}
{%- if salt_settings.use_pip %} {%- if salt_settings.use_pip %}
- require: - require:
- pip: apache-libcloud - pip: salt-cloud-pip-packages
- pip: pycrypto
{% if grains['os_family'] not in ['Debian', 'RedHat'] %}
- pip: crypto
{% endif %}
{%- endif %} {%- endif %}
{% endif %} {% endif %}