First check in of authoized_keys - no functional difference yet, just
[mirror/dsa-puppet.git] / modules / ssh / manifests / init.pp
1 class ssh {
2         package {
3                 openssh-client: ensure => installed;
4                 openssh-server: ensure => installed;
5         }
6
7         file { "/etc/ssh/ssh_config":
8                 source  => [ "puppet:///ssh/ssh_config" ],
9                 require => Package["openssh-client"]
10                 ;
11                "/etc/ssh/sshd_config":
12                 content => template("ssh/sshd_config.erb"),
13                 require => Package["openssh-server"],
14                 notify  => Exec["ssh restart"]
15                 ;
16 #                "/etc/ssh/userkeys/root":
17 #               content => template("ssh/authorized_keys.erb" ],
18 #               require => Package["openssh-server"]
19 #                ;
20         }
21
22         exec { "ssh restart":
23             path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
24             refreshonly => true,
25         }
26 }