Puppet Class: useradd::etc_profile
- Defined in:
- manifests/etc_profile.pp
Overview
This class takes various SIMP security-related settings and applies them to the appropriate /etc/profile.d/simp.* files to enforce them at login for all users.
Currently only supports csh and sh files in profile.d.
author: SIMP Team <simp@simp-project.com>
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'manifests/etc_profile.pp', line 45
class useradd::etc_profile (
Integer $session_timeout = 15,
String $umask = '0077',
Boolean $mesg = false,
Array $user_whitelist = [],
Hash $prepend = {},
Hash $append = {}
){
file { '/etc/profile.d/simp.sh':
ensure => 'file',
owner => 'root',
group => 'root',
mode => '0644',
seltype => 'bin_t',
content => template('useradd/etc/profile.d/simp.sh.erb')
}
file { '/etc/profile.d/simp.csh':
ensure => 'file',
owner => 'root',
group => 'root',
mode => '0644',
seltype => 'bin_t',
content => template('useradd/etc/profile.d/simp.csh.erb')
}
}
|