mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-12-18 17:00:35 +01:00
87074cf3d9
As discussed in PR#305, these are defaults that even if they are configurable as probably not suited to a majority of users and causes delete/add output on highstate of user of the formula choses to use the same file name.
26 lines
852 B
Plaintext
26 lines
852 B
Plaintext
# This file managed by Salt, do not edit by hand!!
|
|
# Providers for openstack-based Rackspace cloud servers.
|
|
|
|
{% set cloud = salt['pillar.get']('salt:cloud', {}) -%}
|
|
{% for region in cloud.get('rsos_regions', []) %}
|
|
|
|
rsos_{{ region|lower }}:
|
|
minion:
|
|
master: {{ cloud.get('master', 'salt') }}
|
|
grains:
|
|
region: {{ region|lower }}
|
|
|
|
identity_url: 'https://identity.api.rackspacecloud.com/v2.0/tokens'
|
|
compute_name: cloudServersOpenStack
|
|
protocol: ipv4
|
|
compute_region: {{ region }}
|
|
{%- if grains.saltversioninfo[0] >= 2016 or (grains.saltversioninfo[0] >= 2015 and grains.saltversioninfo[1] >= 8) %}
|
|
driver: openstack
|
|
{%- else %}
|
|
provider: openstack
|
|
{%- endif %}
|
|
user: {{ cloud.get('rsos_user', 'DEFAULT') }}
|
|
tenant: {{ cloud.get('rsos_tenant', 'DEFAULT') }}
|
|
apikey: {{ cloud.get('rsos_apikey', 'DEFAULT') }}
|
|
{% endfor %}
|