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