Description
Hi,
I'm using check and notify scripts with this role. The check script certainly is ok with running with restricted permissions, but the notify scripts do require root
user.
So I'm looking to configure root
user for the notify scripts only, as described in the keepalived config documentation:
# to MASTER transition
notify_master /path/to/master.sh [username [groupname]]
However, when specifying my notify_master
script that way
notify_master: /path/to/master.sh root
the role generates the following configuration in keepalived.conf
:
notify_master "/path/to/master.sh root"
Of course the role cannot distinguish between a script argument and a user definition, so now it created a script with file name /path/to/master.sh root
, while the script itself is running as keepalived_script
.
Am I missing something or is this not possible with the role at the moment?
If the latter, I'd be happy to provide a PR for implementing it.
Best Regards
Salvoxia