/[adm]/puppet/modules/openssh/manifests/init.pp
ViewVC logotype

Diff of /puppet/modules/openssh/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 435 by misc, Sat Nov 20 11:52:54 2010 UTC revision 436 by misc, Tue Nov 23 23:17:47 2010 UTC
# Line 22  class openssh { Line 22  class openssh {
22          require => Package["openssh-server"],          require => Package["openssh-server"],
23          content => template("openssh/sshd_config")          content => template("openssh/sshd_config")
24      }      }
25    
26    
27        class ssh_keys_from_ldap {
28    
29            package { 'python-ldap':
30                ensure => installed,
31            }
32    
33            $pubkeys_directory = "/var/lib/pubkeys"
34            file { $pubkeys_directory:
35                ensure => directory,
36                owner => root,
37                group => root,
38                mode => 755,
39            #    before => Class["openssh"]
40            }
41    
42            file { "$pubkeys_directory/root":
43                ensure => directory,
44                owner => root,
45                group => root,
46                mode => 700,
47            }
48    
49            file { "$pubkeys_directory/root/authorized_keys":
50                ensure => "/root/.ssh/authorized_keys",
51                mode => 700,
52            }
53    
54            $ldap_pwfile = "/etc/ldap.secret"
55            file { '/usr/local/bin/ldap-sshkey2file.py':
56                ensure => present,
57                owner => root,
58                group => root,
59                mode => 755,
60                content => template("restrictshell/ldap-sshkey2file.py"),
61                require => Package['python-ldap']
62            }
63        }
64  }  }

Legend:
Removed from v.435  
changed lines
  Added in v.436

  ViewVC Help
Powered by ViewVC 1.1.30