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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11 - (show annotations) (download)
Tue Oct 26 17:24:15 2010 UTC (10 years ago) by misc
File size: 718 byte(s)
- add openssh module

1 class openssh {
2
3 # some trick to manage sftp server, who is arch dependent on mdv
4 $usr_lib = $architecture ? {
5 x86_64 => "lib64",
6 default => "lib"
7 }
8
9 $path_to_sftp = "/usr/$usr_lib/ssh/"
10
11 package { "openssh-server":
12 ensure => installed
13 }
14
15 service { sshd:
16 ensure => running,
17 path => "/etc/init.d/sshd",
18 subscribe => [ Package["openssh-server"], File["sshd_config"] ]
19 }
20
21 file { "sshd_config":
22 path => "/etc/ssh/sshd_config",
23 ensure => present,
24 owner => root,
25 group => root,
26 mode => 644,
27 require => Package["openssh-server"],
28 content => template("openssh/sshd_config")
29 }
30 }

  ViewVC Help
Powered by ViewVC 1.1.28