Puppet Class: useradd::useradd
- Defined in:
- manifests/useradd.pp
Overview
Install and configure the useradd default configuration file. See useradd(8) for more details.
author: SIMP Team <simp@simp-project.com>
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'manifests/useradd.pp', line 14
class useradd::useradd (
Integer $group = 100,
Stdlib::AbsolutePath $home = '/home',
Integer $inactive = 35,
Optional[
Pattern[/^\d{4}-\d{2}-\d{2}$/]
] $expire = undef,
Stdlib::AbsolutePath $shell = '/bin/bash',
Stdlib::AbsolutePath $skel = '/etc/skel',
Boolean $create_mail_spool = true,
) {
file { '/etc/default/useradd':
owner => 'root',
group => 'root',
mode => '0600',
content => template('useradd/etc/default/useradd.erb')
}
}
|