Ask Your Question

Define differnet ssh port nos

asked 2014-01-07 07:16:51 -0600

mac gravatar image


How can I set the init.pp code for ssh module where I need to set different ssh port nos for 5 nodes & set same default ssh port for rest nodes.

Hoe can I achieve this through puppet.


edit retag flag offensive close merge delete


Don't close questions that are answered, just mark the correct answer as accepted which I've done for you.

ramindk gravatar imageramindk ( 2014-01-08 11:45:30 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-01-07 15:41:03 -0600

rjc gravatar image

How about deploying sshd_config file using Puppet template with an if or two?

edit flag offensive delete link more


thanks for the response.

mac gravatar imagemac ( 2014-01-08 04:09:05 -0600 )edit

answered 2014-01-07 20:57:03 -0600

Red Cricket gravatar image

updated 2014-01-07 21:00:39 -0600

You can also manage config files like the /etc/ssh/sshd_config with the Augeas type ( ). This document may also be helpful:

edit flag offensive delete link more


great as it solves my ques..thanks a lot

mac gravatar imagemac ( 2014-01-08 04:10:13 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-01-07 07:16:51 -0600

Seen: 117 times

Last updated: Jan 07 '14