Browse Source

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
Chandan Kumar 3 months ago
parent
commit
f44635f975
1 changed files with 15 additions and 2 deletions
  1. 15
    2
      test-install-tempest.yml

+ 15
- 2
test-install-tempest.yml View File

@@ -25,7 +25,20 @@
25 25
   become: True
26 26
   gather_facts: true
27 27
   any_errors_fatal: true
28
-  roles:
29
-    - role: "{{ tempest_rolename | default('os_tempest') }}"
30 28
   vars_files:
31 29
     - test-vars.yml
30
+  tasks:
31
+    - name: Setup clouds.yaml for the root user
32
+      include_role:
33
+        name: openstack_openrc
34
+        private: yes
35
+      vars:
36
+        openrc_file_dest: "/root/openrc"
37
+        openrc_file_owner: "root"
38
+        openrc_openstack_client_config_dir_dest: "/root/.config/openstack"
39
+        openrc_openstack_client_config_dir_owner: "root"
40
+        openrc_clouds_yml_file_owner: "root"
41
+
42
+    - name: Include Tempest role
43
+      include_role:
44
+        name: "{{ tempest_rolename | default('os_tempest') }}"

Loading…
Cancel
Save