Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual IP changes: run a custom script when a change is detected #6657

Closed
nqb opened this issue Oct 26, 2021 · 1 comment · Fixed by #7654
Closed

Virtual IP changes: run a custom script when a change is detected #6657

nqb opened this issue Oct 26, 2021 · 1 comment · Fixed by #7654

Comments

@nqb
Copy link
Contributor

nqb commented Oct 26, 2021

Is your feature request related to a problem? Please describe.
When you are in a cloud environment, assigning a dynamic virtual IP address using VRRP is not always supported as-is. Manual actions can be necessary.

In order to perform these actions, it would be nice to let users execute a script when a VRRP change occured.

We already have a script called pfupdate executed through keepalived configuration but you have to patch that script to perform your actions.

Describe the solution you'd like
pfupdate will run a custom script if present. We can pass $mode as an argument and also virtual IP address to assign.

@nqb
Copy link
Contributor Author

nqb commented Oct 26, 2021

Thing to have in mind: when you restart keepalived to apply some changes like a routed network, it triggers a VRRP change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants