aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openssh/manifests/init.pp
blob: e55660fd72dc32ab0c6d739e6acf56d91ce27696 (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
class openssh {

    # some trick to manage sftp server, who is arch dependent on mdv    
    $path_to_sftp = "$lib_dir/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")
    }
}