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
+21
View File
@@ -0,0 +1,21 @@
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