This pacemaker resource agent is useful if you have a resource that can be started/stopped and monitored using linux commands.
An example would be to block a specific with iptables
pcs resource create PostgresLBWriteBlock ocf:heartbeat:command_raw \
start_cmd="/usr/sbin/iptables -A INPUT -p tcp --dport 80 -j REJECT" \
stop_cmd="/usr/sbin/iptables -D INPUT -p tcp --dport 80 -j REJECT" \
monitor_cmd="/usr/sbin/iptables -C INPUT -p tcp --dport 80 -j REJECT" \
MIT License