Saltstack Official Salt Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

_rsos.conf 852B

12345678910111213141516171819202122232425
  1. # This file managed by Salt, do not edit by hand!!
  2. # Providers for openstack-based Rackspace cloud servers.
  3. {% set cloud = salt['pillar.get']('salt:cloud', {}) -%}
  4. {% for region in cloud.get('rsos_regions', []) %}
  5. rsos_{{ region|lower }}:
  6. minion:
  7. master: {{ cloud.get('master', 'salt') }}
  8. grains:
  9. region: {{ region|lower }}
  10. identity_url: 'https://identity.api.rackspacecloud.com/v2.0/tokens'
  11. compute_name: cloudServersOpenStack
  12. protocol: ipv4
  13. compute_region: {{ region }}
  14. {%- if grains.saltversioninfo[0] >= 2016 or (grains.saltversioninfo[0] >= 2015 and grains.saltversioninfo[1] >= 8) %}
  15. driver: openstack
  16. {%- else %}
  17. provider: openstack
  18. {%- endif %}
  19. user: {{ cloud.get('rsos_user', 'DEFAULT') }}
  20. tenant: {{ cloud.get('rsos_tenant', 'DEFAULT') }}
  21. apikey: {{ cloud.get('rsos_apikey', 'DEFAULT') }}
  22. {% endfor %}