ghoneycutt / puppet-module-ssh

Puppet module to manage SSH
Other
34 stars 184 forks source link

Cannot get banner contents read from heira #362

Closed mp05 closed 2 years ago

mp05 commented 2 years ago

I have tried to use heira to define a banner pulled from a module like so

ssh::sshd_banner_content: file('filerepo/ssh/security_banner')
ssh::sshd_config_banner: '/etc/ssh/security_banner'

Where 'filerepo' is the name of a module

The result is a file /etc/ssh/security_banner with content 'file('filerepo/ssh/security_banner')'

Is there some magic syntax that I need?

ghoneycutt commented 2 years ago

The content requires the actual content in the string. You could write the content to that file using a profile class.