blob: 3b894ac14570bd1112326935ca48e2a7fd96d7a0 (
plain) (
blame)
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 sshd {
package { 'openssh':
ensure => installed;
}
service { 'sshd':
enable => true,
ensure => running;
}
file {
'/etc/ssh/sshd_config.d':
ensure => directory,
require => Package['openssh'];
}
sshd::configsection { '00base':
source => 'puppet:///modules/sshd/00base';
}
exec { 'assemble sshd_config':
provider => 'shell',
command => 'cd /etc/ssh/sshd_config.d && cat $(ls) > /etc/ssh/sshd_config',
refreshonly => true;
}
File['/etc/ssh/sshd_config.d'] -> Sshd::Configsection<| |>
Sshd::Configsection<| |> ~> Exec['assemble sshd_config']
Exec['assemble sshd_config'] ~> Service['sshd']
}
|