56 |
mode => 700, |
mode => 700, |
57 |
} |
} |
58 |
|
|
59 |
|
$sshkey2file = "/usr/local/bin/ldap-sshkey2file.py" |
60 |
$ldap_pwfile = "/etc/ldap.secret" |
$ldap_pwfile = "/etc/ldap.secret" |
61 |
file { '/usr/local/bin/ldap-sshkey2file.py': |
file { $sshkey2file: |
62 |
ensure => present, |
ensure => present, |
63 |
owner => root, |
owner => root, |
64 |
group => root, |
group => root, |
66 |
content => template("restrictshell/ldap-sshkey2file.py"), |
content => template("restrictshell/ldap-sshkey2file.py"), |
67 |
require => Package['python-ldap'] |
require => Package['python-ldap'] |
68 |
} |
} |
69 |
|
cron { 'sshkey2file': |
70 |
|
command => $sshkey2file, |
71 |
|
hour => "*", |
72 |
|
minute => */10, |
73 |
|
user => root, |
74 |
|
environment => "MAILTO=root", |
75 |
|
require => File[$sshkey2file], |
76 |
|
} |
77 |
} |
} |
78 |
} |
} |