Add OS_CACERT

Change-Id: Ibb741a52cb1eca5b67aa8e7ff6afa1b4f64e165b
This commit is contained in:
Asma Syed Hameed 2020-03-24 12:51:27 +05:30
parent 03a603816a
commit ebebb6ba98
2 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,7 @@
remote_user: "{{ browbeat_user }}"
roles:
- common
- osp_version
- browbeat
- stockpile
- { role: browbeat-results, when: browbeat_results_in_httpd}

View File

@ -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