sudo

pdk
Setup sudo and configure sudo directives

Puppet-Finland team

puppetfinland

4,426 downloads

4,426 latest version

5.0 quality score

Version information

  • 0.5.2 (latest)
released May 10th 2018
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.7.0 < 6.0.0
  • CentOS
    ,
    Debian
    , FreeBSD,
    RedHat
    ,
    Ubuntu

Start using this module

Documentation

puppetfinland/sudo — version 0.5.2 May 10th 2018

sudo

A Puppet module for installing and configuring sudo

Module usage

Enable users in the default admin group (sudo or wheel) to run commands as root:

include ::sudo

Add an additional one-liner sudo directive (note the linefeed at the end):

sudo::directive { 'staff':
  content => '%staff    ALL=(ALL:ALL) ALL\n',
}

Add a fragment based on an ERB template:

sudo::directive { 'sudorules':
  content => template('profile/sudorules.erb'),
}

Add a fragment from a static file:

sudo::directive { 'sudorules':
  source => 'puppet:///modules/profile/sudorules',
}

For details refer to init.pp and directive.pp