Update build nodes task to use the cloud config

novaclient 7.0.0 and above requires the 'project_name'
parameter, defined in the cloud.yml config file.

Change-Id: I15928d05ddbad28a8bdb3ef247c6aac85226a4d2
This commit is contained in:
Ronelle Landy 2017-02-02 10:02:46 -05:00
parent c3bd5078de
commit e7c1e4cb21
1 changed files with 2 additions and 4 deletions

View File

@ -110,10 +110,8 @@
- name: Build nodes.json file to be used as instackenv.json
shell: >
chdir={{ local_working_dir }}
export OS_USERNAME="{{ os_username }}";
export OS_PASSWORD="{{ os_password }}";
export OS_TENANT_NAME="{{ os_tenant_name }}";
export OS_AUTH_URL="{{ os_auth_url }}";
export OS_CLIENT_CONFIG_FILE="{{ local_working_dir }}/clouds.yaml";
export OS_CLOUD="{{ cloud_name}}";
{{ ovb_dir }}/bin/build-nodes-json --env {{ local_working_dir }}/{{ prefix }}env.yaml
register: nodes_json
no_log: true