Forge Home


Sets up sudoers file, both global parameters and user rules.


7,835 latest version

3.8 quality score

Version information

  • 1.0.0 (latest)
  • 0.3.0
  • 0.2.0
  • 0.1.0
released Nov 25th 2015
This version is compatible with:
  • , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'sharumpe-sudoers', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add sharumpe-sudoers
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install sharumpe-sudoers --version 1.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Tags: sudoers, suse, alpha


sharumpe/sudoers — version 1.0.0 Nov 25th 2015


This is a sudoers module indended to configure simple rules.

This is provided as-is, YMMV.


Just include the module:

include sudoers

Do some configuration:

sudoers::config{ 'defaults_env_reset' :
  key     => 'Defaults',
  value   => 'env_reset',

Allow the wheel group to do anything:

sudoers::userrule{ 'anything_for_wheel' :
  user    => '%wheel',
  command => 'ALL',

Give the "vagrant" user password-less sudo:

sudoers::userrule { 'vagrant_sudo' :
  user    => 'vagrant',
  options => 'NOPASSWD',
  command => 'ALL'

Let the 'foo' group run 'ls' as the user 'foobar':

sudoers::userrule { 'ls_as_foobar' :
  user    => '%foo',
  command => 'ls',
  runas   => 'foobar',


If you send email, please include "sharumpe-sudoers" in the subject line.