Paul Stemmet
be92e2c705
longest that can be created is DPANIC, or 6 wide. Upstream-Ref: https://github.com/uber-go/zap/blob/v1.24.0/zapcore/level.go#L135 |
||
---|---|---|
buildinfo | ||
cmd | ||
config | ||
doc | ||
fifo | ||
handler | ||
schema/notify | ||
systemd | ||
tool | ||
watcher | ||
.gitignore | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
Makefile | ||
README.md |
kdnotify - A keepalived FIFO handler
This is a utility that is primary focused on integrating with Keepalived's
vrrp_notify_fifo_script
and vrrp_notify_fifo
configuration options.
It provides a more structured approach than Keepalived's suggested shell script, allowing users to specify rules for processing events, rather than requiring tedious and error prone handling of parsing and processing each event individually.
Usage
The primary usage of this binary requires three things:
- A configuration file in
/etc/kdnotify/config.yaml
- A running kdnotify service, see kdnotify.socket
- Enabling Keepalived to use this project for notifications via:
# Or in any other block where vrrp_notify_fifo_script is legal
global_defs {
notify_fifo /run/kdnotify.fifo [username [groupname]]
}
Development
You can run make help
in the repo root to get a list of available targets, but these
are the most useful:
Target | Description |
---|---|
build |
Build the binary to build/kdnotify |
check |
Run project checks and lints |
install |
Install the project to the local system |
clean |
Cleans build directory |
configure |
Configures build time directives |
Make sure you run check
before merging to master
.