diff options
Diffstat (limited to 'deployment/shadow/manifests/init.pp')
| -rw-r--r-- | deployment/shadow/manifests/init.pp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/deployment/shadow/manifests/init.pp b/deployment/shadow/manifests/init.pp new file mode 100644 index 00000000..c24c36bf --- /dev/null +++ b/deployment/shadow/manifests/init.pp @@ -0,0 +1,23 @@ +class shadow { + include stdlib + + $login_defs = '/etc/login.defs' + + file { $login_defs: + owner => 'root', + group => 'shadow', + mode => '0640', + } + + file_line { 'uid_max': + path => $login_defs, + line => 'UID_MAX 2000', + match => '^UID_MAX\s+', + } + + file_line { 'gid_max': + path => $login_defs, + line => 'GID_MAX 2000', + match => '^GID_MAX\s+', + } +} |
