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

Unified Diff: modules/ssh/templates/sshd_config.erb

Issue 29323885: Issue 2920 - Allow for SSH TCP forwarding to be enabled via Hiera (Closed)
Patch Set: Created Aug. 17, 2015, 9:02 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/manifests/init.pp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/ssh/templates/sshd_config.erb
diff --git a/modules/ssh/templates/sshd_config.erb b/modules/ssh/templates/sshd_config.erb
index f1e915aa200c1ff16a9ea40186f3b61472fc9f95..2507559a74dd3bc144d6e6478e3494890c4c7472 100644
--- a/modules/ssh/templates/sshd_config.erb
+++ b/modules/ssh/templates/sshd_config.erb
@@ -65,7 +65,13 @@ AllowAgentForwarding yes
<% else -%>
AllowAgentForwarding no
<% end -%>
+
+<% if @tcp_forwarding and [true, 'true', 'yes'].include? @tcp_forwarding -%>
+AllowTcpForwarding yes
+<% else -%>
AllowTcpForwarding no
+<% end -%>
+
X11Forwarding no
X11DisplayOffset 10
PrintMotd no
« no previous file with comments | « modules/ssh/manifests/init.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld