From 82b0e095a56a9707268f83484292589902ab1c8a Mon Sep 17 00:00:00 2001 From: Uwe Grawert Date: Fri, 8 Oct 2021 12:15:36 +0200 Subject: [PATCH] Grafana: Run priviliged when copying home dashboard file The copy job for the grafana home dashboard file needs to run priviliged, otherwise permission denied error occurs. Closes-Bug: #1947710 Change-Id: Ib15e961e5193af55e45a443305a96667295f3cb7 --- ansible/roles/grafana/tasks/config.yml | 1 + releasenotes/notes/bug-1947710-6d0975ae72f43ada.yaml | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 releasenotes/notes/bug-1947710-6d0975ae72f43ada.yaml diff --git a/ansible/roles/grafana/tasks/config.yml b/ansible/roles/grafana/tasks/config.yml index ec99252b9c..cc12d874a8 100644 --- a/ansible/roles/grafana/tasks/config.yml +++ b/ansible/roles/grafana/tasks/config.yml @@ -76,6 +76,7 @@ run_once: True - name: Copying over grafana home dashboard if exists + become: true template: src: "{{ node_custom_config }}/grafana/grafana_home_dashboard.json" dest: "{{ node_config_directory }}/grafana/grafana_home_dashboard.json" diff --git a/releasenotes/notes/bug-1947710-6d0975ae72f43ada.yaml b/releasenotes/notes/bug-1947710-6d0975ae72f43ada.yaml new file mode 100644 index 0000000000..e0761df376 --- /dev/null +++ b/releasenotes/notes/bug-1947710-6d0975ae72f43ada.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + Fixes the copy job for grafana custom home dashboard file. + The copy job for the grafana home dashboard file needs to run priviliged, + otherwise permission denied error occurs. + `LP#[1947710] `__