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

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

Issue 29580555: #4433 - Introduce ssh::sshd_configfragments as Hiera parameter (Closed)
Patch Set: Created Oct. 16, 2017, 4:37 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/ssh/manifests/init.pp
diff --git a/modules/ssh/manifests/init.pp b/modules/ssh/manifests/init.pp
index 97214ad1262cc430c4c5b35b10551ef346e35339..4bb6852a52dd35735f05072e050009e101dbb15f 100644
--- a/modules/ssh/manifests/init.pp
+++ b/modules/ssh/manifests/init.pp
@@ -26,6 +26,14 @@ class ssh(
order => '01',
}
+ # http://hub.eyeo.com/issues/4433
+ $sshd_configfragments = hiera_hash('ssh::sshd_configfragments', {})
+
+ create_resources('concat::fragment', $sshd_configfragments, {
+ target => 'sshd_config',
+ order => '10',
+ })
+
file {'ssh_config':
content => template('ssh/ssh_config.erb'),
group => 'root',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld