# # Copyright 2020 Huawei Technologies Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # --- - name: Hawkbit add repo command: helm repo add eclipse-iot https://eclipse.org/packages/charts ignore_errors: yes no_log: True - name: Update helm repo command: helm repo update ignore_errors: yes no_log: True - name: local-path storage class setup command: kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml ignore_errors: yes no_log: True - name: setup default class command: kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' ignore_errors: yes no_log: True - name: Install hackbit command: helm install eclipse-hawkbit eclipse-iot/hawkbit ignore_errors: yes no_log: True