Setup clouds.yaml on tempest node

Since clouds.yaml is used by os_tempest role to perform most of
the resource creation stuff, so we need to setup clouds.yaml on
the same.

Change-Id: Idd23ce08949a64831db8d777216d9aef3d0531db
This commit is contained in:
Chandan Kumar 2019-01-18 18:58:18 +05:30
parent fe6c8344d1
commit f44635f975
1 changed files with 15 additions and 2 deletions

View File

@ -25,7 +25,20 @@
become: True become: True
gather_facts: true gather_facts: true
any_errors_fatal: true any_errors_fatal: true
roles:
- role: "{{ tempest_rolename | default('os_tempest') }}"
vars_files: vars_files:
- test-vars.yml - test-vars.yml
tasks:
- name: Setup clouds.yaml for the root user
include_role:
name: openstack_openrc
private: yes
vars:
openrc_file_dest: "/root/openrc"
openrc_file_owner: "root"
openrc_openstack_client_config_dir_dest: "/root/.config/openstack"
openrc_openstack_client_config_dir_owner: "root"
openrc_clouds_yml_file_owner: "root"
- name: Include Tempest role
include_role:
name: "{{ tempest_rolename | default('os_tempest') }}"