Skip to content

Commit

Permalink
PMM-12641 fix the startup logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Oct 15, 2024
1 parent 81d4442 commit 034c9c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build/ansible/roles/initialization/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@
group: pmm
mode: 0644

- name: Wait until postgres is up
wait_for:
host: 127.0.0.1
port: 5432
timeout: 150

- name: Create grafana DB
block:
- name: Wait until postgres is up
wait_for:
host: 127.0.0.1
port: 5432
timeout: 150

block:
- name: Create grafana database in postgres
postgresql_db:
name: grafana
Expand Down
4 changes: 4 additions & 0 deletions build/ansible/roles/pmm-images/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@
- name: Start supervisord
shell: supervisord -c /etc/supervisord.conf &

- name: Run initialization playbook
include_role:
name: initialization

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

Expand Down

0 comments on commit 034c9c8

Please sign in to comment.