瀏覽代碼

Compact salt-cloud pip.installed instructions

tags/v0.57.0
Gilles Dartiguelongue 7 年之前
父節點
當前提交
dce9bea40b
共有 1 個檔案被更改,包括 8 行新增18 行删除
  1. +8
    -18
      salt/cloud.sls

+ 8
- 18
salt/cloud.sls 查看文件

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


Loading…
取消
儲存