diff options
Diffstat (limited to 'plugins/stor4nfv/roles/stor4nfv/tasks/post-install.yml')
-rw-r--r-- | plugins/stor4nfv/roles/stor4nfv/tasks/post-install.yml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/plugins/stor4nfv/roles/stor4nfv/tasks/post-install.yml b/plugins/stor4nfv/roles/stor4nfv/tasks/post-install.yml index 182c0a68..501d3baa 100644 --- a/plugins/stor4nfv/roles/stor4nfv/tasks/post-install.yml +++ b/plugins/stor4nfv/roles/stor4nfv/tasks/post-install.yml @@ -31,6 +31,7 @@ become: true args: chdir: /opt/ceph-ansible + ignore_errors: "true" when: - ceph_ansible_exists.stat.exists is defined and ceph_ansible_exists.stat.exists @@ -43,25 +44,25 @@ - name: ensure osdsctl exists stat: - path: /opt/opensds-v0.1.5-linux-{{ imgarch }}/bin/osdsctl + path: /opt/opensds-hotpot-linux-{{ imgarch }}/bin/osdsctl ignore_errors: "true" register: osdsctl_exists - name: ensure opensds csi directory exists stat: - path: /opt/opensds-k8s-v0.1.0-linux-{{ imgarch }} + path: /opt/opensds-sushi-linux-{{ imgarch }} ignore_errors: "true" register: csi_dir_exists -- name: create opensds default profile, csi pods +- name: create opensds default profile, create csi pods remote_user: root shell: | - cp /opt/opensds-v0.1.5-linux-{{ imgarch }}/bin/osdsctl /usr/local/bin; + cp /opt/opensds-hotpot-linux-{{ imgarch }}/bin/osdsctl /usr/local/bin; export OPENSDS_ENDPOINT=http://{{ public_vip.ip }}:50040; export OPENSDS_AUTH_STRATEGY=noauth; - osdsctl profile create '{"name": "default", "description": "default policy"}' - cd /opt/opensds-k8s-v0.1.0-linux-{{ imgarch }}; - kubectl create -f csi/deploy/kubernetes; + osdsctl profile create '{"name": "default", "description": "default policy"}'; + cd /opt/opensds-sushi-linux-{{ imgarch }}; + kubectl create -f csi/deploy/kubernetes ignore_errors: "true" when: - osdsctl_exists.stat.exists is defined and osdsctl_exists.stat.exists |