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

Delta Between Two Patch Sets: modules/ssh/manifests/init.pp

Issue 5766400081657856: #760 - Make our ssh configuration used automatically for all servers (Closed)
Left Patch Set: Created July 15, 2014, 11:03 a.m.
Right Patch Set: #760 - Make our ssh configuration used automatically for all servers Created July 15, 2014, 1:21 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « modules/ssh/files/sshd_config ('k') | modules/statsclient/manifests/init.pp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 class ssh () { 1 class ssh {
Wladimir Palant 2014/07/15 11:56:47 Nit: parentheses are unnecessary if there are no p
mathias 2014/07/15 12:03:12 Ok.
2 package {'openssh-server': ensure => present} 2 package {'openssh-server': ensure => present}
3 3
4 concat {'sshd_config': 4 concat {'sshd_config':
5 path => '/etc/ssh/sshd_config', 5 path => '/etc/ssh/sshd_config',
6 owner => root, 6 owner => root,
7 group => root, 7 group => root,
8 mode => 0644, 8 mode => 0644,
9 require => Package['openssh-server'] 9 require => Package['openssh-server']
10 } 10 }
11 11
12 concat::fragment {'sshd_config_template': 12 concat::fragment {'sshd_config_template':
13 target => 'sshd_config', 13 target => 'sshd_config',
14 content => template('ssh/sshd_config.erb'), 14 source => 'puppet:///modules/ssh/sshd_config',
15 order => '01', 15 order => '01',
16 } 16 }
17 17
18 service {'ssh': 18 service {'ssh':
19 ensure => running, 19 ensure => running,
20 enable => true, 20 enable => true,
21 hasstatus => true, 21 hasstatus => true,
22 hasrestart => true, 22 hasrestart => true,
23 subscribe => Concat['sshd_config'] 23 subscribe => Concat['sshd_config']
24 } 24 }
25 } 25 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld