diff options
author | Justin chi <chigang@huawei.com> | 2018-06-13 06:25:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-06-13 06:25:12 +0000 |
commit | c6c79ab29ccf71547750c8907108b2320512050a (patch) | |
tree | 5016218653d62b5663927fe6135e164ad3065e9d /plugins | |
parent | 05da1301e0095be4da4fbf37393ddea0209e6e80 (diff) | |
parent | 9fc28e99d7c9a87ac71678465290bcb094a30470 (diff) |
Merge "stor4nfv: support multiple architecture images"
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/stor4nfv/roles/stor4nfv/tasks/post-install.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/stor4nfv/roles/stor4nfv/tasks/post-install.yml b/plugins/stor4nfv/roles/stor4nfv/tasks/post-install.yml index 55d26d69..182c0a68 100644 --- a/plugins/stor4nfv/roles/stor4nfv/tasks/post-install.yml +++ b/plugins/stor4nfv/roles/stor4nfv/tasks/post-install.yml @@ -8,6 +8,10 @@ # ############################################################################# --- +- name: define image architecture + set_fact: + imgarch: "{{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64' }}" + - name: ensure ceph-ansible dir exists stat: path: /opt/ceph-ansible @@ -39,24 +43,24 @@ - name: ensure osdsctl exists stat: - path: /opt/opensds-v0.1.5-linux-amd64/bin/osdsctl + path: /opt/opensds-v0.1.5-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-amd64 + path: /opt/opensds-k8s-v0.1.0-linux-{{ imgarch }} ignore_errors: "true" register: csi_dir_exists - name: create opensds default profile, csi pods remote_user: root shell: | - cp /opt/opensds-v0.1.5-linux-amd64/bin/osdsctl /usr/local/bin; + cp /opt/opensds-v0.1.5-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-amd64; + cd /opt/opensds-k8s-v0.1.0-linux-{{ imgarch }}; kubectl create -f csi/deploy/kubernetes; ignore_errors: "true" when: |