Added salt-cloud support for Rackspace OpenStack servers.

This commit is contained in:
Andrew Vant committed 2014-10-03 21:23:50 -04:00
1 parent 4702e77756
commit 970da0ef37
4 files changed
+41

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
# This file managed by Salt, do not edit by hand!!
+7
View File
@@ -0,0 +1,7 @@
# This file managed by Salt, do not edit by hand!!
{% for region in salt['pillar.get']('salt:cloud:rsos_regions', []) %}
base_ubuntu_rsos_{{ region|lower }}:
image: Ubuntu 14.04 LTS (Trusty Tahr)
provider: rsos_{{ region|lower }}
size: 512MB Standard Instance
{% endfor %}
+22
View File
@@ -0,0 +1,22 @@
# This file managed by Salt, do not edit by hand!!
# Providers for openstack-based Rackspace cloud servers.
{% set salt = pillar.get('salt', {}) -%}
{% set cloud = salt.get('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 %}