diff options
Diffstat (limited to 'manifests/utmp')
-rw-r--r-- | manifests/utmp/protect.pp | 3 | ||||
-rw-r--r-- | manifests/utmp/unprotect.pp | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/manifests/utmp/protect.pp b/manifests/utmp/protect.pp index 166df5e..603064e 100644 --- a/manifests/utmp/protect.pp +++ b/manifests/utmp/protect.pp @@ -1,5 +1,6 @@ +# make the unprotect file protected from global read class loginrecords::utmp::protect inherits loginrecords::utmp::unprotect { - File[$utmp_file]{ + File[$loginrecords::utmp::protect::utmp_file]{ mode => 660, } } diff --git a/manifests/utmp/unprotect.pp b/manifests/utmp/unprotect.pp index 9da7517..54d821b 100644 --- a/manifests/utmp/unprotect.pp +++ b/manifests/utmp/unprotect.pp @@ -1,8 +1,11 @@ +# manage the utmp file class loginrecords::utmp::unprotect( $utmp_file = '/var/run/utmp' ){ - file{$utmp_file: - ensure => 'present', - owner => 'root', group => 'utmp', mode => 664; + file{$loginrecords::utmp::unprotect::utmp_file: + ensure => 'present', + owner => 'root', + group => 'utmp', + mode => '0664'; } } |