8000 Define user/group per script · Issue #295 · evrardjp/ansible-keepalived · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Define user/group per script #295
Open
@Salvoxia

Description

@Salvoxia

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0