sudo

contributions requested
Puppet module for SUDO access

8,756 downloads

8,756 latest version

4.1 quality score

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.0 (latest)
released Sep 6th 2013

Start using this module

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

Add this module to your Puppetfile:

mod 'Vglen-sudo', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add Vglen-sudo
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install Vglen-sudo --version 0.1.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.

Download
Tags: sudo

Documentation

Vglen/sudo — version 0.1.0 Sep 6th 2013

sudo

A puppet module for granting sudo access to a user or to a set of commands.

##Notes This is the inital relase. It's built using paramterized classes, but can be altered for use with hiera.

##Requiremnets The base module installs or verifies that SUDO is installed.

##Usage

User Example:

class sudo::puppet (

$touser = 'puppet', $sudo_users = 'vglen', ){

$capuser = inline_template('<%= touser.upcase %>') notify { "type is set to ${touser}":; }

file {"/etc/sudoers.d/sudo_${touser}": ensure => file, content => template("${module_name}/base_user.erb"), } }

Command Example:

class sudo::puppet (

$touser = 'puppet', $sudocmd = '/usr/bin/puppet agent -t', $sudo_users = 'vglen', $cmd_title = 'puppet_run', ){

$capuser = inline_template('<%= touser.upcase %>') notify { "type is set to ${touser}":; }

file {"/etc/sudoers.d/sudo_${cmd_title}": ensure => file, content => template("${module_name}/base_cmd.erb"), } }