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

Unified Diff: modules/statsclient/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/ssh/templates/sshd_config.erb ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/statsclient/manifests/init.pp
===================================================================
--- a/modules/statsclient/manifests/init.pp
+++ b/modules/statsclient/manifests/init.pp
@@ -19,13 +19,16 @@
source => 'puppet:///modules/private/stats-authorized_keys',
}
- class {'ssh':
- custom_configuration => 'Match User stats
+ concat::fragment {'sshd_user_stats':
+ target => 'sshd_config',
+ content => '
+ Match User stats
AllowTcpForwarding no
X11Forwarding no
AllowAgentForwarding no
GatewayPorts no
- ForceCommand (echo $SSH_ORIGINAL_COMMAND | grep -qv /) && cat "/var/log/nginx/$SSH_ORIGINAL_COMMAND"',
+ ForceCommand (echo $SSH_ORIGINAL_COMMAND | grep -qv /) && cat "/var/log/nginx/$SSH_ORIGINAL_COMMAND"
+ '
}
cron {'mirrorstats':
« no previous file with comments | « modules/ssh/templates/sshd_config.erb ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld