Browse Source

Compact salt-cloud pip.installed instructions

tags/v0.57.0
Gilles Dartiguelongue 7 years ago
parent
commit
dce9bea40b
1 changed files with 8 additions and 18 deletions
  1. +8
    -18
      salt/cloud.sls

+ 8
- 18
salt/cloud.sls View File

python-pip: python-pip:
pkg.installed pkg.installed


pycrypto:
pip.installed:
- require:
- pkg: python-pip

{% if grains['os_family'] not in ['Debian', 'RedHat'] %}
crypto:
pip.installed:
- require:
- pkg: python-pip
{% endif %}

apache-libcloud:
salt-cloud-pip-packages:
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 %}
- 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: pycrypto
{% if grains['os_family'] not in ['Debian', 'RedHat'] %}
- pip: crypto
{% endif %}
- pip: salt-cloud-pip-packages
{%- endif %} {%- endif %}
{% endif %} {% endif %}



Loading…
Cancel
Save