Puppet Class: security::access

Defined in:
modules/security/manifests/access.pp

Overview



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'modules/security/manifests/access.pp', line 8

class security::access {

    file { '/etc/security/access.conf.d':
        ensure  => directory,
        recurse => true,
        purge   => true,
        owner   => 'root',
        group   => 'root',
        mode    => '0555',
        notify  => Exec['merge-access-conf'],
    }

    exec { 'merge-access-conf':
        refreshonly => true,
        cwd         => '/etc/security',
        command     => '/bin/cat access.conf.d/* >access.conf~ && mv access.conf~ access.conf',
    }

    security::pam::config { 'local-pam-access':
        source => 'puppet:///modules/security/local-pam-access',
    }

}