Fix the playbook browbeat.yml to support OSP17
Change-Id: I556bded23938b90691d8ba14356766fc03424bbc
This commit is contained in:
@@ -84,19 +84,21 @@
|
|||||||
- name: Get the OS_AUTH_URL value in stackrc
|
- name: Get the OS_AUTH_URL value in stackrc
|
||||||
shell: cat {{home_dir}}/undercloudrc | grep OS_AUTH_URL=
|
shell: cat {{home_dir}}/undercloudrc | grep OS_AUTH_URL=
|
||||||
register: os_auth_url
|
register: os_auth_url
|
||||||
|
when: rhosp_version is version('15.0', '>=') and (rhosp_version is version('17.0', '<'))
|
||||||
|
|
||||||
- name: Add v3 to OS_AUTH_URL in stackrc
|
- name: Add v3 to OS_AUTH_URL in stackrc
|
||||||
replace:
|
replace:
|
||||||
path: "{{home_dir}}/undercloudrc"
|
path: "{{home_dir}}/undercloudrc"
|
||||||
regexp: "{{ os_auth_url.stdout }}"
|
regexp: "{{ os_auth_url.stdout }}"
|
||||||
replace: '{{ os_auth_url.stdout }}/v3'
|
replace: '{{ os_auth_url.stdout }}/v3'
|
||||||
|
when: rhosp_version is version('15.0', '>=') and (rhosp_version is version('17.0', '<'))
|
||||||
|
|
||||||
- name: Add OS_CACERT to undercloudrc
|
- name: Add OS_CACERT to undercloudrc
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{home_dir}}/undercloudrc"
|
path: "{{home_dir}}/undercloudrc"
|
||||||
insertafter: "export OS_USER"
|
insertafter: "export OS_USER"
|
||||||
line: "export OS_CACERT=/etc/pki/ca-trust/source/anchors/undercloud-cacert.pem"
|
line: "export OS_CACERT=/etc/pki/ca-trust/source/anchors/undercloud-cacert.pem"
|
||||||
when: rhosp_version is version('15.0', '>=')
|
when: rhosp_version is version('15.0', '>=') and (rhosp_version is version('17.0', '<'))
|
||||||
|
|
||||||
- name: Setup rally deployment for undercloud
|
- name: Setup rally deployment for undercloud
|
||||||
shell: . {{ rally_venv }}/bin/activate; . "{{home_dir}}/undercloudrc"; rally deployment create --fromenv --name undercloud
|
shell: . {{ rally_venv }}/bin/activate; . "{{home_dir}}/undercloudrc"; rally deployment create --fromenv --name undercloud
|
||||||
|
|||||||
Reference in New Issue
Block a user