Hawkbit updated for local-path SC
[eliot.git] / blueprints / iotgateway / playbooks / roles / el_hawkbit / tasks / install.yml
index b9d2714..82704c5 100644 (file)
 
 - 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