Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/ssh/manifests/init.pp

Issue 29323885: Issue 2920 - Allow for SSH TCP forwarding to be enabled via Hiera (Closed)
Patch Set: Created Aug. 17, 2015, 9:02 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | modules/ssh/templates/sshd_config.erb » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « no previous file | modules/ssh/templates/sshd_config.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld