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