From ebebb6ba987acf053561b45f619666fa9bca01d3 Mon Sep 17 00:00:00 2001 From: Asma Syed Hameed Date: Tue, 24 Mar 2020 12:51:27 +0530 Subject: [PATCH] Add OS_CACERT Change-Id: Ibb741a52cb1eca5b67aa8e7ff6afa1b4f64e165b --- ansible/install/browbeat.yml | 1 + ansible/install/roles/rally/tasks/main.yml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/ansible/install/browbeat.yml b/ansible/install/browbeat.yml index 387b5e8bd..762b787ad 100644 --- a/ansible/install/browbeat.yml +++ b/ansible/install/browbeat.yml @@ -7,6 +7,7 @@ remote_user: "{{ browbeat_user }}" roles: - common + - osp_version - browbeat - stockpile - { role: browbeat-results, when: browbeat_results_in_httpd} diff --git a/ansible/install/roles/rally/tasks/main.yml b/ansible/install/roles/rally/tasks/main.yml index 1befab4a3..5665affbd 100644 --- a/ansible/install/roles/rally/tasks/main.yml +++ b/ansible/install/roles/rally/tasks/main.yml @@ -55,6 +55,13 @@ regexp: "{{ os_auth_url.stdout }}" replace: '{{ os_auth_url.stdout }}/v3' + - name: Add OS_CACERT to undercloudrc + lineinfile: + path: "{{home_dir}}/undercloudrc" + insertafter: "export OS_USER" + line: "export OS_CACERT=/etc/pki/ca-trust/source/anchors/undercloud-cacert.pem" + when: rhosp_version is version('15.0', '>=') + - name: Setup rally deployment for undercloud shell: . {{ rally_venv }}/bin/activate; . "{{home_dir}}/undercloudrc"; rally deployment create --fromenv --name undercloud