aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/shadow/manifests/init.pp
blob: c24c36bfc7087acc7d2bf5561c7e657d177ae588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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+',
    }
}