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

Unified Diff: modules/ssh/manifests/init.pp

Issue 5766400081657856: #760 - Make our ssh configuration used automatically for all servers (Closed)
Patch Set: #760 - Make our ssh configuration used automatically for all servers Created July 15, 2014, 12:59 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/filtermaster/manifests/init.pp ('k') | modules/ssh/templates/sshd_config.erb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/ssh/manifests/init.pp
===================================================================
--- a/modules/ssh/manifests/init.pp
+++ b/modules/ssh/manifests/init.pp
@@ -1,13 +1,21 @@
-class ssh ($custom_configuration = '') {
+class ssh (
+ $max_startups = "10:30:60",
+ $max_sessions = "10" ) {
+
package {'openssh-server': ensure => present}
- file {'/etc/ssh/sshd_config':
- ensure => present,
+ concat {'sshd_config':
+ path => '/etc/ssh/sshd_config',
owner => root,
group => root,
mode => 0644,
+ require => Package['openssh-server']
+ }
+
+ concat::fragment {'sshd_config_template':
+ target => 'sshd_config',
content => template('ssh/sshd_config.erb'),
- require => Package['openssh-server']
+ order => '01',
}
service {'ssh':
@@ -15,6 +23,6 @@
enable => true,
hasstatus => true,
hasrestart => true,
- subscribe => File['/etc/ssh/sshd_config']
+ subscribe => Concat['sshd_config']
}
}
« no previous file with comments | « modules/filtermaster/manifests/init.pp ('k') | modules/ssh/templates/sshd_config.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld