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

Added support for track_scripts to the template #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jpfir
Copy link

@jpfir jpfir commented Apr 27, 2023

This PR adds support for track_scripts in the keepalived Puppet module template.

With this new feature, users can now define scripts to be tracked by keepalived and have the virtual IP failover if the script fails. This is useful for monitoring services that are critical for the proper functioning of the virtual IP, such as database or load balancer services.

The changes made include:

Adding a new section to the template that loops through the instances and their associated track_scripts, generating a vrrp_script block for each track_script defined in the instance.
Modifying the vrrp_instance section to include a new track_script block for each instance that has track_scripts defined.
Updating the README.md file to document the new feature.

These changes have been tested locally and the new feature is working as expected.

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

Successfully merging this pull request may close these issues.

1 participant