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

Create a Host_Alias section in the sudoer file when multiple hosts are specified. #30

Open
bschonec opened this issue Oct 18, 2019 · 2 comments

Comments

@bschonec
Copy link

bschonec commented Oct 18, 2019

It doesn't look like the sudo_users.hosts variable supports an array. It would be nice to be able to input the hosts as an array and have the role create a Host_Alias section and then reference the Host_Alias in the configuration line:

sudo_users:

  • name: oracle
    hosts:
    • oracle1.example.org
    • oracle2.example.org

Resulting sudoers file:

Host_Alias ORACLE_SERVERS=oracle1.example.org,oracle2.example.org
oracle ORACLE_SERVERS=(root) NOPASSWD: ALL

This would of course rely on #30

@bschonec
Copy link
Author

Available in #31

@franklinkim
Copy link
Member

hi, I think adding aliases is a good idea, I will comment on #31

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

No branches or pull requests

2 participants