0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-11-28 20:15:49 +01:00
salt-formula/salt/files/cloud.providers.d/rsos.conf
Raphaël Hertzog 445108f87a Avoid “set salt” jinja calls that mask the usual salt variable
Most include do not expect salt to be something else than the usual salt
variable giving access to all the salt modules. Instead we use cfg_salt.
And for consistency we rename the master/minion variables to
cfg_master/cfg_minion too.
2014-12-24 16:12:40 +01:00

22 lines
626 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['master'] }}
grains:
region: {{ region|lower }}
identity_url: 'https://identity.api.rackspacecloud.com/v2.0/tokens'
compute_name: cloudServersOpenStack
protocol: ipv4
compute_region: {{ region }}
provider: openstack
user: {{ cloud['rsos_user'] }}
tenant: {{ cloud['rsos_tenant'] }}
apikey: {{ cloud['rsos_apikey'] }}
{% endfor %}