Closed hiltonaipfw closed 8 years ago
I would put it in Hiera first. Next best solution would be to use a profile that wraps around ssh and include your profile instead of the ssh class directly.
ie:
class profile::ssh {
$banner = template('profile/ssh/banner.erb'),
class { 'ssh':
sshd_banner_content => $banner,
}
}
Do one of these options work for you?
It does - I configured it to work with the wrapper this morning and it is working great. Thanks for the follow-up!
From: Garrett Honeycutt [mailto:notifications@github.com] Sent: Friday, September 9, 2016 11:31 AM To: ghoneycutt/puppet-module-ssh puppet-module-ssh@noreply.github.com Cc: Aaron Hilton hiltona@ipfw.edu; Author author@noreply.github.com Subject: Re: [ghoneycutt/puppet-module-ssh] Allow use of an .erb template file for sshd_banner_content (#190)
Do one of these options work for you?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ghoneycutt/puppet-module-ssh/issues/190#issuecomment-245948202, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVA8aP0W_8Xj0EwTnHLA12glrFk_6blCks5qoXvCgaJpZM4J4T-r.
It would be great if you could add in the ability to use a template file for the contents of the sshd banner file. Our banner is 10 lines long and it gets really ugly to edit it and get the newlines and spacing right. Using a template file would take care of that problem.