sudosh
: sudosh class This class installs sudosh and optionally configures rsyslog and logrotate.
sudosh class
This class installs sudosh and optionally configures rsyslog and logrotate.
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'
}
The following parameters are available in the sudosh
class:
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 })
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 })
Data type: String
Default value: simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' })