Add PostgreSQL HA OCF agent modular baseline

This commit is contained in:
Lyncoln
2026-09-12 01:28:33 -04:00
commit 4a358ae0f6
30 changed files with 7119 additions and 0 deletions
@@ -0,0 +1,29 @@
Clone: pg-ha-clone
Meta Attributes: pg-ha-clone-meta_attributes
clone-max=2
clone-node-max=1
notify=true
promotable=true
promoted-max=1
promoted-node-max=1
Resource: pg-ha (class=ocf provider=loxthelion type=managed-container)
Attributes: pg-ha-instance_attributes
container_name=postgres
db_name=david
db_user=david
pg_os_user=postgres
service_name=postgres.service
service_user=david
Operations:
demote: pg-ha-demote-interval-0s
interval=0s timeout=60s
monitor: pg-ha-monitor-interval-11s
interval=11s timeout=20s role=Promoted
promote: pg-ha-promote-interval-0s
interval=0s timeout=60s
start: pg-ha-start-interval-0s
interval=0s timeout=60s
stop: pg-ha-stop-interval-0s
interval=0s timeout=60s
monitor: pg-ha-monitor-interval-10s
interval=10s timeout=20s role=Unpromoted