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

Feature: Allow specifying user (and group) for sync group and instance notify scripts #296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Salvoxia
Copy link

@Salvoxia Salvoxia commented Mar 1, 2025

Use Case

Run keepalived with enable_script_security and default user keepalived_script to run scripts with, but still run some notify scripts with elevated permissions.

Implementation

Added support for the following optional keys in keepalived_sync_groups and keepalived_instances to control the user (and group) a notify script runs with:

keepalived_sync_groups:
  group:
    notify_script_user_group: user [group]
    notify_master_user_group:  user [group]
    notify_backup_user_group: user [group]
    notify_fault_user_group: user [group]
keepalived_instances:
  instance:
    notify_script_user_group: user [group]
    notify_master_user_group: user [group]
    notify_master_rx_lower_pri_user_group: user [group]
    notify_backup_user_group: user [group]
    notify_fault_user_group: user [group]
    notify_stop_user_group: user [group]

Implements #295

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