Feature Request > Please provide ability to define custom templates
bojleros opened this issue · comments
Hi,
Please consider following solution from attachmentgenie-ssh:
class ssh::params {
...
$server_config_template = 'ssh/sshd_config.erb'
...
class ssh::server (
...
..
) inherits ssh::params {
...
file { '/etc/ssh/sshd_config':
content => template($template),
require => Package['openssh-server'],
owner => root,
group => root,
mode => '0600'
}
Would it be possible to have similar feature for a main rsyslog configuration file ? Such sollution can bevery handy when a default config template contains hardcoded lines. When those lines are causing a troubles user will be able to provide external template and solve the issue on his/hers own.
Kind Regards,
I guess you meant "for a main ssh configuration file", not rsyslog. That looks like a good idea. Would you be able to create a pull request?