Skip to content

Latest commit

 

History

History
69 lines (40 loc) · 1.65 KB

REFERENCE.md

File metadata and controls

69 lines (40 loc) · 1.65 KB

Reference

Table of Contents

Classes

  • sudosh: sudosh class This class installs sudosh and optionally configures rsyslog and logrotate.

Classes

sudosh

sudosh class

This class installs sudosh and optionally configures rsyslog and logrotate.

Examples

Ensuring all sudo operations are run with sudosh
Insert the following code in an appropriate manifest (e.g.,
/etc/puppet/manifests/nodes/default_classes/base_config.pp).

  sudo::user_specification { 'global_admin':
    user_list => '%administrators',
    host_list => 'ALL',
    runas => 'ALL',
    cmnd => '/usr/bin/sudosh',
    passwd => 'false'
  }

Parameters

The following parameters are available in the sudosh class:

syslog

Data type: Boolean

Whether to include SIMP's ::rsyslog class and use it to create a specific log file for sudosh (/var/log/sudosh.log)

Default value: simplib::lookup('simp_options::syslog', { 'default_value' => false })

logrotate

Data type: Boolean

Whether to include SIMP's logrotate class and to use it to create a log rotate rule for the sudosh log file.

Default value: simplib::lookup('simp_options::logrotate', { 'default_value' => false })

package_ensure

Data type: String

Default value: simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' })