Initial support for regions

This is the first attempt at adding support for regions.

Change-Id: If9f7b8b72cc03678e6bd4e188f9dbeaca56b82a1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-08-25 13:30:42 -04:00
parent 66aa6dcd6a
commit 11483dafd4
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
14 changed files with 21 additions and 1 deletions

View File

@ -164,8 +164,15 @@ clouds:
profiles: profiles:
- bootstrap-keypair - bootstrap-keypair
- ops - ops
- name: yaycloud-qa - name: yaycloud-qa-dfw
oscc_cloud: yaycloud-qauser oscc_cloud: yaycloud-qauser
region_name: DFW
profiles:
- bootstrap-keypair
- qa
- name: yaycloud-qa-ord
oscc_cloud: yaycloud-qauser
region_name: ORD
profiles: profiles:
- bootstrap-keypair - bootstrap-keypair
- qa - qa

View File

@ -4,3 +4,4 @@
state: "{{ item_domain.state|default(omit) }}" state: "{{ item_domain.state|default(omit) }}"
name: "{{ item_domain.name }}" name: "{{ item_domain.name }}"
description: "{{ item_domain.description|default(omit) }}" description: "{{ item_domain.description|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"

View File

@ -9,3 +9,4 @@
swap: "{{ item_flavor.swap|default(omit) }}" swap: "{{ item_flavor.swap|default(omit) }}"
ephemeral: "{{ item_flavor.ephemeral|default(omit) }}" ephemeral: "{{ item_flavor.ephemeral|default(omit) }}"
rxtx_factor: "{{ item_flavor.rxtx_factor|default(omit) }}" rxtx_factor: "{{ item_flavor.rxtx_factor|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"

View File

@ -13,3 +13,4 @@
owner: "{{ item_image.owner|default(omit) }}" owner: "{{ item_image.owner|default(omit) }}"
properties: "{{ item_image.properties|default(omit) }}" properties: "{{ item_image.properties|default(omit) }}"
is_public: "{{ item_image.is_public|default(omit) }}" is_public: "{{ item_image.is_public|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"

View File

@ -5,3 +5,4 @@
name: "{{ item_keypair.name }}" name: "{{ item_keypair.name }}"
public_key: "{{ item_keypair.public_key|default(omit) }}" public_key: "{{ item_keypair.public_key|default(omit) }}"
public_key_file: "{{ item_keypair.public_key_file|default(omit) }}" public_key_file: "{{ item_keypair.public_key_file|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"

View File

@ -5,3 +5,4 @@
name: "{{ item_network.name }}" name: "{{ item_network.name }}"
external: "{{ item_network.external|default(omit) }}" external: "{{ item_network.external|default(omit) }}"
project: "{{ item_network.project|default(omit) }}" project: "{{ item_network.project|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"

View File

@ -5,3 +5,4 @@
name: "{{ item_project.name }}" name: "{{ item_project.name }}"
description: "{{ item_project.description|default(omit) }}" description: "{{ item_project.description|default(omit) }}"
domain: "{{ item_project.domain|default(omit) }}" domain: "{{ item_project.domain|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"

View File

@ -8,3 +8,4 @@
enable_snat: "{{ item_router.enable_snat|default(omit) }}" enable_snat: "{{ item_router.enable_snat|default(omit) }}"
external_fixed_ips: "{{ item_router.external_fixed_ips|default(omit) }}" external_fixed_ips: "{{ item_router.external_fixed_ips|default(omit) }}"
interfaces: "{{ item_router.interfaces|default(omit) }}" interfaces: "{{ item_router.interfaces|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"

View File

@ -4,3 +4,4 @@
state: "{{ item_security_group.state|default(omit) }}" state: "{{ item_security_group.state|default(omit) }}"
name: "{{ item_security_group.name }}" name: "{{ item_security_group.name }}"
description: "{{ item_security_group.description|default(omit) }}" description: "{{ item_security_group.description|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"

View File

@ -10,3 +10,4 @@
protocol: "{{ item_security_group_rule.protocol|default(omit) }}" protocol: "{{ item_security_group_rule.protocol|default(omit) }}"
remote_group: "{{ item_security_group_rule.remote_group|default(omit) }}" remote_group: "{{ item_security_group_rule.remote_group|default(omit) }}"
remote_ip_prefix: "{{ item_security_group_rule.remote_ip_prefix|default(omit) }}" remote_ip_prefix: "{{ item_security_group_rule.remote_ip_prefix|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"

View File

@ -28,6 +28,7 @@
userdata: "{{ item_server.userdata|default(omit) }}" userdata: "{{ item_server.userdata|default(omit) }}"
volume_size: "{{ item_server.volume_size|default(omit) }}" volume_size: "{{ item_server.volume_size|default(omit) }}"
volumes: "{{ item_server.volumes|default(omit) }}" volumes: "{{ item_server.volumes|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"
with_sequence: start=1 end={{ item_server.node_count|default(1) }} format=%02x with_sequence: start=1 end={{ item_server.node_count|default(1) }} format=%02x
register: os_server_result register: os_server_result

View File

@ -6,3 +6,4 @@
network_name: "{{ item_subnet.network_name|default(omit) }}" network_name: "{{ item_subnet.network_name|default(omit) }}"
cidr: "{{ item_subnet.cidr }}" cidr: "{{ item_subnet.cidr }}"
dns_nameservers: "{{ item_subnet.dns_nameservers|default(omit) }}" dns_nameservers: "{{ item_subnet.dns_nameservers|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"

View File

@ -7,3 +7,4 @@
email: "{{ item_user.email|default(omit) }}" email: "{{ item_user.email|default(omit) }}"
domain: "{{ item_user.domain|default(omit) }}" domain: "{{ item_user.domain|default(omit) }}"
default_project: "{{ item_user.default_project|default(omit) }}" default_project: "{{ item_user.default_project|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"

View File

@ -9,3 +9,4 @@
key: "{{ item_volume.key|default(omit) }}" key: "{{ item_volume.key|default(omit) }}"
snapshot_id: "{{ item_volume.snapshot_id|default(omit) }}" snapshot_id: "{{ item_volume.snapshot_id|default(omit) }}"
volume_type: "{{ item_volume.volume_type|default(omit) }}" volume_type: "{{ item_volume.volume_type|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"