aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openssh/manifests/server.pp
blob: ce60646b7d0632f6eb3bf22ac158f958f3eaba1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class openssh::server {
    # some trick to manage sftp server, who is arch dependent on mdv
    $path_to_sftp = "$::lib_dir/ssh/"

    package { 'openssh-server': }

    service { 'sshd':
        subscribe => Package['openssh-server'],
    }

    file { '/etc/ssh/sshd_config':
        require => Package['openssh-server'],
        content => template('openssh/sshd_config'),
        notify  => Service['sshd']
    }
}