Skip to content

Commit

Permalink
PMM-12641 stop Grafana before reinstalling the plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Oct 18, 2024
1 parent e7751f3 commit 1e1d5a4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
14 changes: 7 additions & 7 deletions build/ansible/pmm/post-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@
mode: 0775

# nginx needs to be able to write to /var/lib/nginx, but it's owned by root.
- name: Change ownership of nginx dirs
file:
path: /var/lib/nginx
state: directory
group: pmm
owner: pmm
recurse: yes
# - name: Change ownership of nginx dirs
# file:
# path: /var/lib/nginx
# state: directory
# group: pmm
# owner: pmm
# recurse: yes
9 changes: 8 additions & 1 deletion build/ansible/roles/dashboards/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
---
- name: Stop grafana
shell: "supervisorctl {{ item }} grafana"
become: true
become_user: pmm
become_method: su
loop:
- stop

- name: Get plugin list
find:
paths: /usr/share/percona-dashboards/panels/
Expand Down Expand Up @@ -32,6 +40,5 @@
become_user: pmm
become_method: su
loop:
- stop
- remove
- add
2 changes: 1 addition & 1 deletion build/packages/rpm/client/pmm-client.spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Requires(postun): systemd

AutoReq: no
Conflicts: pmm-client
Obsoletes: pmm2-client < 3.0.0
Obsoletes: pmm2-client < 3.0.0

%description
Percona Monitoring and Management (PMM) is an open-source platform for managing and monitoring MySQL and MongoDB
Expand Down

0 comments on commit 1e1d5a4

Please sign in to comment.