From 27bda5b4e46237f800bddb373a29b3366fb3eeeb Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Mon, 27 Jul 2015 13:12:08 +0200 Subject: [PATCH] document the new callbacks option. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 3ecbcebb..be12dc71 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,12 @@ For an example file, see `postgres0.yml`. Below is an explanation of settings: * *username*: replication username, user will be created during initialization * *password*: replication password, user will be created during initialization * *network*: network setting for replication in pg_hba.conf + * *callbacks* callback scripts to run on certain actions. Patroni will pass current action, role and cluster name. See scripts/aws.py as an example on how to write them. + * *on_start*: a script to run when the cluster starts + * *on_stop*: a script to run when the cluster stops + * *on_restart*: a script to run when the cluster restarts + * *on_reload*: a script to run when configuration reload is triggered + * *on_role_change*: a script to run when the cluster is being promoted or demoted * *recovery_conf*: configuration settings written to recovery.conf when configuring follower * *parameters*: list of configuration settings for Postgres