If you're using saz/ssh, just add this to the 'options' parameter (hash) of
ssh::server. Anything that doesn't have a specific parameter can be
implemented there.

On Fri, Aug 25, 2017 at 11:07 PM John <[email protected]> wrote:

> So, I agree this is doable in Hiera.  However, I think for the SAZ SSH
> module, it would be better for me to include it in the sshd_config.erb.
>
> I've added the following to sshd_config.:
>
> <%- if ServerName == myhost -%>
> Port = 9999
> <%- end -%>
>
> Puppet run finishes with no errors, but /etc/ssh/sshd_config does not the
> port setting at all.
>
> I've tried different variations of the command above with no luck.
>
> Am I even in the ball park?  It seems this should doable in the
> sshd_config.erb.  Any advice would be greatly appreciated.
>
> On Tuesday, August 22, 2017 at 12:36:15 PM UTC-4, John wrote:
>>
>> I've pulled down the SAZ SSH module and implemented across my network.
>> It works great.
>>
>> However, I need to implement the following change:
>>
>> If hostname = host1 or host2 or host3
>>   then
>>     port = 4444
>> fi
>>
>> I just want to change the default sshd port for a few hosts.
>>
>> How do I do that?
>>
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/d9316efe-3f09-4401-81ef-4022bbe85a7a%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/d9316efe-3f09-4401-81ef-4022bbe85a7a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Rob Nelson

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAC76iT_XWKj1AHfc88ZEaW1i7Gk99B%3DDKU7ha5sZSk%3Dz9w6jrw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to