forked from saltstack-formulas/salt-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request saltstack-formulas#50 from andrew-vant/rsprov
Added salt-cloud support for Rackspace OpenStack servers.
- Loading branch information
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,16 @@ salt: | |
aws_secret: AWSSECRETYkkDY1iQf9zRtl9+pW+Nm+aZY95 | ||
gce_project: test | ||
gce_service_account_email_address: [email protected] | ||
rsos_user: afeawofghob | ||
rsos_tenant: tenant_id_number | ||
rsos_apikey: WFJIOJEOIGHSOFHESO | ||
rsos_regions: | ||
- ORD | ||
- DFW | ||
- IAD | ||
- SYD | ||
- HKG | ||
|
||
salt_cloud_certs: | ||
aws: | ||
pem: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This file managed by Salt, do not edit by hand!! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 %} |