Ask Your Question
1

Define differnet ssh port nos

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

mac gravatar image

Hi,

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.

Thanks

edit retag flag offensive close merge delete

Comments

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 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

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

rjc gravatar image

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

edit flag offensive delete link more

Comments

thanks for the response.

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

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

Red Cricket gravatar image

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

You can also manage config files like the /etc/ssh/sshd_config with the Augeas type ( http://docs.puppetlabs.com/references/latest/type.html#augeas ). This document may also be helpful: http://docs.puppetlabs.com/hiera/1/complete_example.html

edit flag offensive delete link more

Comments

great as it solves my ques..thanks a lot

mac gravatar imagemac ( 2014-01-08 04:10:13 -0500 )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

Stats

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

Seen: 97 times

Last updated: Jan 07 '14