|
|
|
|
|
|
|
|
{% set cloudprofiles = salt['pillar.get']('salt:cloud:profiles', {}) -%} |
|
|
{% set cloudprofiles = salt['pillar.get']('salt:cloud:profiles', {}) -%} |
|
|
{% set cloudproviders = salt['pillar.get']('salt:cloud:providers', {}) -%} |
|
|
{% set cloudproviders = salt['pillar.get']('salt:cloud:providers', {}) -%} |
|
|
|
|
|
|
|
|
|
|
|
{%- if salt_settings.use_pip %} |
|
|
python-pip: |
|
|
python-pip: |
|
|
pkg.installed |
|
|
pkg.installed |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pip.installed: |
|
|
pip.installed: |
|
|
- require: |
|
|
- require: |
|
|
- pkg: python-pip |
|
|
- pkg: python-pip |
|
|
|
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
{% if salt_settings.install_packages %} |
|
|
{% if salt_settings.install_packages %} |
|
|
salt-cloud: |
|
|
salt-cloud: |
|
|
pkg.installed: |
|
|
pkg.installed: |
|
|
- name: {{ salt_settings.salt_cloud }} |
|
|
- name: {{ salt_settings.salt_cloud }} |
|
|
|
|
|
{%- if salt_settings.use_pip %} |
|
|
- require: |
|
|
- require: |
|
|
- pip: apache-libcloud |
|
|
- pip: apache-libcloud |
|
|
- pip: pycrypto |
|
|
- pip: pycrypto |
|
|
{% if grains['os_family'] not in ['Debian', 'RedHat'] %} |
|
|
{% if grains['os_family'] not in ['Debian', 'RedHat'] %} |
|
|
- pip: crypto |
|
|
- pip: crypto |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
{%- endif %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% for cert in pillar.get('salt_cloud_certs', {}) %} |
|
|
{% for cert in pillar.get('salt_cloud_certs', {}) %} |