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

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

Issue 29323173: Issue 2815 - Allow for SSH agent forwarding to be enabled via Hiera (Closed)
Patch Set: Created Aug. 3, 2015, 10:10 a.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 | « modules/ssh/files/sshd_config ('k') | 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),
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 }
OLDNEW
« no previous file with comments | « modules/ssh/files/sshd_config ('k') | modules/ssh/templates/sshd_config.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld