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

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

Issue 29323173: Issue 2815 - Allow for SSH agent forwarding to be enabled via Hiera (Closed)
Patch Set: Created Aug. 3, 2015, 10:10 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
« 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/files/sshd_config b/modules/ssh/templates/sshd_config.erb
similarity index 95%
rename from modules/ssh/files/sshd_config
rename to modules/ssh/templates/sshd_config.erb
index 812e0614e46c4c7d3cd72b8380b38e7dce699200..f1e915aa200c1ff16a9ea40186f3b61472fc9f95 100644
--- a/modules/ssh/files/sshd_config
+++ b/modules/ssh/templates/sshd_config.erb
@@ -60,7 +60,11 @@ PasswordAuthentication no
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
+<% if @agent_forwarding and [true, 'true', 'yes'].include? @agent_forwarding -%>
+AllowAgentForwarding yes
+<% else -%>
AllowAgentForwarding no
+<% end -%>
AllowTcpForwarding no
X11Forwarding no
X11DisplayOffset 10
« 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