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

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

Issue 5766400081657856: #760 - Make our ssh configuration used automatically for all servers (Closed)
Patch Set: Created July 15, 2014, 11:03 a.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
Index: modules/filtermaster/manifests/init.pp
===================================================================
--- a/modules/filtermaster/manifests/init.pp
+++ b/modules/filtermaster/manifests/init.pp
@@ -3,17 +3,25 @@
environment => ['MAILTO=admins@adblockplus.org', 'PYTHONPATH=/opt/sitescripts'],
}
- class {'ssh':
- custom_configuration => '
- MaxSessions 50
- MaxStartups 50
+ concat::fragment {'sshd_max_limits':
+ target => 'sshd_config',
+ order => '02',
Wladimir Palant 2014/07/15 11:56:47 This doesn't need to be sequential, '50' maybe?
+ content => '
+ MaxSessions 50
+ MaxStartups 50
+ '
+ }
- Match User rsync
- AllowTcpForwarding no
- X11Forwarding no
- AllowAgentForwarding no
- GatewayPorts no
- ForceCommand rsync --server --sender -vltprz --delete-excluded . /home/rsync/generated/data/'
+ concat::fragment {'sshd_user_rsync':
+ target => 'sshd_config',
+ content => '
Wladimir Palant 2014/07/15 11:56:47 order => '99'?
mathias 2014/07/15 12:03:12 Either the non-block settings (see your comment ab
Wladimir Palant 2014/07/15 14:18:35 I don't really understand your comment. My underst
+ Match User rsync
+ AllowTcpForwarding no
+ X11Forwarding no
+ AllowAgentForwarding no
+ GatewayPorts no
+ ForceCommand rsync --server --sender -vltprz --delete-excluded . /home/rsync/generated/data/
+ '
}
user {'rsync':

Powered by Google App Engine
This is Rietveld