Skip to content

Commit

Permalink
PMM-12693 move the version copying out of dashboards_update
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Dec 1, 2023
1 parent 5773ba6 commit 60679c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,3 @@
ignore_errors: true
# TODO: fix the race condition.
# We generate grafana supervisor config in pmm-managed and it may not exist at this stage

- name: Copy file with image version
copy:
src: /usr/share/percona-dashboards/VERSION
dest: /srv/grafana/PERCONA_DASHBOARDS_VERSION
owner: pmm
group: pmm
mode: 0666
remote_src: yes
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,14 @@
- name: Create empty configuration file for VictoriaMetrics
file: path=/etc/victoriametrics-promscrape.yml state=touch owner=pmm group=pmm

- name: Check if we need an upgrade
include_role:
name: dashboards_upgrade
- name: Copy file with image version
copy:
src: /usr/share/percona-dashboards/VERSION
dest: /srv/grafana/PERCONA_DASHBOARDS_VERSION
owner: pmm
group: pmm
mode: 0666
remote_src: yes
when: not pmm_current_version is version(pmm_image_version, '>=')

- name: Finalization
Expand Down

0 comments on commit 60679c7

Please sign in to comment.