mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-10 15:02:56 +00:00
Add an ansible script to collect https://github.com/neondatabase/neon/pull/3710 state JSON from all safekeeper nodes and upload them to a postgres table.
19 lines
538 B
YAML
19 lines
538 B
YAML
- name: Fetch state dumps from safekeepers
|
|
hosts: safekeepers
|
|
gather_facts: False
|
|
remote_user: "{{ remote_user }}"
|
|
|
|
tasks:
|
|
- name: Download file
|
|
get_url:
|
|
url: "http://{{ inventory_hostname }}:7676/v1/debug_dump?dump_all=true&dump_disk_content=false"
|
|
dest: "/tmp/{{ inventory_hostname }}.json"
|
|
|
|
- name: Fetch file from remote hosts
|
|
fetch:
|
|
src: "/tmp/{{ inventory_hostname }}.json"
|
|
dest: "./result/{{ inventory_hostname }}.json"
|
|
flat: yes
|
|
fail_on_missing: no
|
|
|