X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=blueprints%2Fiotgateway%2Fplaybooks%2Froles%2Fgrafana%2Ftasks%2Finstall.yml;fp=blueprints%2Fiotgateway%2Fplaybooks%2Froles%2Fgrafana%2Ftasks%2Finstall.yml;h=204b2bb481d930e6adbe4e2a8d9f5bdc7e13ee75;hb=233fedcbae7166783277ed538d454b106b9d52ae;hp=46245cbd0ff8f82a35acb9fe1ecf6a8ff9b27a6c;hpb=8d3b452ed742e3b9e3e7e5ed9633038437fbdca9;p=eliot.git diff --git a/blueprints/iotgateway/playbooks/roles/grafana/tasks/install.yml b/blueprints/iotgateway/playbooks/roles/grafana/tasks/install.yml index 46245cb..204b2bb 100644 --- a/blueprints/iotgateway/playbooks/roles/grafana/tasks/install.yml +++ b/blueprints/iotgateway/playbooks/roles/grafana/tasks/install.yml @@ -15,7 +15,7 @@ --- - name: check if grafana is already installed shell: - cmd: helm status mec-grafana + cmd: helm status grafana register: result ignore_errors: yes no_log: True @@ -30,10 +30,23 @@ # yamllint disable rule:line-length when: result.stdout == "" +- name: "INSTALL: Add Grafana Repo on x86" + shell: + cmd: helm repo add grafana https://grafana.github.io/helm-charts + when: result is failed and ansible_architecture == 'x86_64' + ignore_errors: yes + +- name: "INSTALL: Update helm repo" + shell: + cmd: helm repo update + when: result is failed and ansible_architecture == 'x86_64' + ignore_errors: yes + - name: "INSTALL: Install grafana on x86_64" shell: - cmd: helm install mec-grafana stable/grafana + cmd: helm install grafana grafana/grafana when: result is failed and ansible_architecture == 'x86_64' + ignore_errors: yes - name: "INSTALL: copy values.yaml to host" copy: @@ -43,5 +56,5 @@ - name: "INSTALL: Install grafana on aarch64" shell: - cmd: helm install mec-grafana stable/grafana -f /tmp/grafana/values.yaml + cmd: helm install grafana stable/grafana -f /tmp/grafana/values.yaml when: result is failed and ansible_architecture == 'aarch64'