Add shaker_region

Allow the user to change the region from the group_vars entry instead of
the playbook

Change-Id: Idc5278e355550ce60af412d712c0cbc3b89e5d82
This commit is contained in:
Joe Talerico 2016-03-28 12:34:15 -04:00
parent 8aeb443df9
commit 963657e5e4
2 changed files with 2 additions and 1 deletions

View File

@ -84,6 +84,7 @@ shaker_port: 5555
shaker_flavor: m1.small shaker_flavor: m1.small
# Shaker centos image builder template # Shaker centos image builder template
shaker_centos: "{{shaker_venv}}/lib/python2.7/site-packages/shaker/resources/image_builder_templates/centos.yaml" shaker_centos: "{{shaker_venv}}/lib/python2.7/site-packages/shaker/resources/image_builder_templates/centos.yaml"
shaker_region: regionOne
######################################## ########################################
# Browbeat Network Configuration # Browbeat Network Configuration

View File

@ -11,7 +11,7 @@
source {{ overcloudrc }}; source {{ shaker_venv }}/bin/activate; source {{ overcloudrc }}; source {{ shaker_venv }}/bin/activate;
shaker-image-builder --flavor-name {{ shaker_flavor }} --image-builder-template shaker-image-builder --flavor-name {{ shaker_flavor }} --image-builder-template
{{ shaker_centos }} {{ shaker_centos }}
--os-region-name regionOne --os-region-name {{ shaker_region }}
become: true become: true
register: image_result register: image_result
failed_when: image_result.rc != 0 failed_when: image_result.rc != 0