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

Supporting sudoers file #306

Open
mboisson opened this issue Jan 22, 2024 · 2 comments
Open

Supporting sudoers file #306

mboisson opened this issue Jan 22, 2024 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@mboisson
Copy link
Member

For an internal project, we need to provide an extensive sudoers file to be deployed on all nodes.

@cmd-ntrf cmd-ntrf self-assigned this Jan 22, 2024
@cmd-ntrf cmd-ntrf added the enhancement New feature or request label Jan 22, 2024
@mboisson
Copy link
Member Author

Would it be preferable to use the same strategy as for Duo (adding an existing puppet module) ?
https://www.puppet.com/docs/puppet/7/quick_start_sudo.html

@mboisson
Copy link
Member Author

mboisson commented Jan 26, 2024

Supporting sudoers can be done easily by adding
mod 'saz-sudo', '8.0.0'
to the Puppetfile, then adding sudo to the packages installed by the tag you want, and then adding something like this to your yaml file:

sudo::ldap_enable: true
sudo::config_file_replace: false
sudo::prefix: '10-rsnt_'
sudo::purge_ignore: '[!10-rsnt_]*'
sudo::configs:
  'general':
    'content': |
      the content of your sudoers file
    'priority': 1

@cmd-ntrf cmd-ntrf added the documentation Improvements or additions to documentation label Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants