+ mode: 0755\r
+\r
+- name: Configure opensds endpoint IP in opensds external provisioner plugin\r
+ lineinfile:\r
+ dest: "{{ nbp_work_dir }}/provisioner/deploy/configmap.yaml"\r
+ regexp: '^ opensdsendpoint'\r
+ line: ' opensdsendpoint: {{ opensds_endpoint }}'\r
+ backup: yes\r
+\r
+- name: Configure opensds auth strategy in opensds external provisioner plugin\r
+ lineinfile:\r
+ dest: "{{ nbp_work_dir }}/provisioner/deploy/configmap.yaml"\r
+ regexp: '^ opensdsauthstrategy'\r
+ line: ' opensdsauthstrategy: {{ opensds_auth_strategy }}'\r
+ backup: yes\r
+\r
+- name: Configure keystone os auth url in opensds external provisioner plugin\r
+ lineinfile:\r
+ dest: "{{ nbp_work_dir }}/provisioner/deploy/configmap.yaml"\r
+ regexp: '^ osauthurl'\r
+ line: ' osauthurl: {{ keystone_os_auth_url }}'\r
+ backup: yes\r
+ when: opensds_auth_strategy == "keystone"\r
+\r
+- name: Prepare and deploy opensds external provisioner plugin\r
+ shell: |\r
+ . /etc/profile\r
+ kubectl create -f deploy/\r
+ args:\r
+ chdir: "{{ nbp_work_dir }}/provisioner"\r
+ ignore_errors: yes\r