Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-7 Fix grafana stop/start #3320

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions build/ansible/roles/dashboards/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
- name: Stop and remove Grafana from Supervisor
shell: "supervisorctl {{ item }} grafana"
- name: Stop Grafana
community.general.supervisorctl:
name: grafana
state: stopped
become: true
become_user: pmm
become_method: su
loop:
- stop
- remove

- name: Retrieve Percona plugins
find:
Expand Down Expand Up @@ -42,12 +41,12 @@
owner: pmm
group: pmm
mode: 0644
remote_src: yes
remote_src: yes

- name: Restart Grafana service with new plugins
shell: "supervisorctl {{ item }} grafana"
- name: Start Grafana
community.general.supervisorctl:
name: grafana
state: started
become: true
become_user: pmm
become_method: su
loop:
- add
2 changes: 1 addition & 1 deletion build/ansible/roles/pmm-images/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@

- name: Run initialization playbook
include_role:
name: initialization
name: initialization

- name: Check supervisord logs
shell: sleep 10 && tail -n 200 /srv/logs/supervisord.log
Expand Down
Loading