Skip to content

A collection of Pacemaker Heartbeat scripts that can be used with Corosync

License

Notifications You must be signed in to change notification settings

mariancraciun1983/corosync-pacemaker-heartbeats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Pacemaker raw_command resource agent



Introduction

This pacemaker resource agent is useful if you have a resource that can be started/stopped and monitored using linux commands.

Example

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" \

License

MIT License

About

A collection of Pacemaker Heartbeat scripts that can be used with Corosync

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages