Add os_client_config_cloud parameter to infra_config.yml

Instead of hardcoding to a known clouds.yaml cloud name, allow
it to be configurable.
This commit is contained in:
Ricardo Carrillo Cruz 2015-05-26 13:21:16 +02:00
parent fd985c23ef
commit 806d56e97d
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
---
os_client_config_cloud: envvars
system_config_repo_url: git@your_git_server/system-config.git
key_name: your_openstack_key
domainname: yourdomain

View File

@ -2,8 +2,8 @@
- name: Create OpenStack instances
os_server:
state: present
cloud: openstack
name: "{{ item.name }}"
cloud: "{{os_client_config_cloud}}"
name: "{{ item.name }}.{{ domainname }}"
region_name: region-b.geo-1
availability_zone: az2
image: "{{ item.image }}"