Puppet - SSH Tunnel

72 views
Skip to first unread message

Fabricio Cruz

unread,
Dec 24, 2015, 11:40:59 AM12/24/15
to Puppet Users

Hello,

I currently have a host that is accessed saw ssh tunnel, I need to manage that host with puppet. How can I do that?

To connect to the host I use the command: ssh -N -R 10000: localhost: 22 user@hostX.

I added this command on a .sh file and run:

ssh -t user@otherserver "./file.sh"

Thanks.

jcbollinger

unread,
Jan 4, 2016, 9:02:07 AM1/4/16
to Puppet Users


On Thursday, December 24, 2015 at 10:40:59 AM UTC-6, Fabricio Cruz wrote:

Today at 09:48

Hello,

I currently have a host that is accessed saw ssh tunnel, I need to manage that host with puppet. How can I do that?

To connect to the host I use the command: ssh -N -R 10000: localhost: 22 us...@hostX.

I added this command on a .sh file and run:

ssh -t user@otherserver "./file.sh"

Thanks.



How you must access a machine from elsewhere has little bearing on how you would manage it via Puppet, because Puppet (agent / master) is based on a pull model, not a push model.  The machine to be managed needs to be able to establish network connections to the machine on which the master runs, so that it can make catalog requests and access the master's built-in file server.  The master, on the other hand, never needs to initiate a connection to any agent.


John

Reply all
Reply to author
Forward
0 new messages