OLD | NEW |
1 class ssh { | 1 class ssh( |
| 2 $agent_forwarding = hiera('ssh::agent_forwarding', false), |
| 3 ) { |
| 4 |
2 package {'openssh-server': ensure => present} | 5 package {'openssh-server': ensure => present} |
3 | 6 |
4 concat {'sshd_config': | 7 concat {'sshd_config': |
5 path => '/etc/ssh/sshd_config', | 8 path => '/etc/ssh/sshd_config', |
6 owner => root, | 9 owner => root, |
7 group => root, | 10 group => root, |
8 mode => 0644, | 11 mode => 0644, |
9 require => Package['openssh-server'] | 12 require => Package['openssh-server'] |
10 } | 13 } |
11 | 14 |
12 concat::fragment {'sshd_config_template': | 15 concat::fragment {'sshd_config_template': |
13 target => 'sshd_config', | 16 target => 'sshd_config', |
14 source => 'puppet:///modules/ssh/sshd_config', | 17 content => template('ssh/sshd_config.erb'), |
15 order => '01', | 18 order => '01', |
16 } | 19 } |
17 | 20 |
18 service {'ssh': | 21 service {'ssh': |
19 ensure => running, | 22 ensure => running, |
20 enable => true, | 23 enable => true, |
21 hasstatus => true, | 24 hasstatus => true, |
22 hasrestart => true, | 25 hasrestart => true, |
23 subscribe => Concat['sshd_config'] | 26 subscribe => Concat['sshd_config'] |
24 } | 27 } |
25 } | 28 } |
OLD | NEW |