Discussion:
[Fab-user] fabric with a jump box
Beryl Snyder
2014-10-08 14:27:09 UTC
Permalink
Hi,

I'm trying to figure out how to run fabric via a jump box.

foo (bar)
(baz)
personal box, box with fabric installed --> remote box, with limited
access ---> server(s) to configure

I was looking at trying to run it with remote_tunnel() but I'm not sure
if that's the correct way or if there's a better way

Also if that is the correct way, to make the remote remote_tunnel('***@bar
')?
then just run the commands?
Brandon Whaley
2014-10-08 14:38:28 UTC
Permalink
Hi Beryl,

Check out the gateway setting in fabric for using an intermediate box
like that: http://docs.fabfile.org/en/1.10/usage/env.html#gateway
Post by Beryl Snyder
Hi,
I'm trying to figure out how to run fabric via a jump box.
foo (bar)
(baz)
personal box, box with fabric installed --> remote box, with limited access
---> server(s) to configure
I was looking at trying to run it with remote_tunnel() but I'm not sure if
that's the correct way or if there's a better way
Also if that is the correct way, to make the remote
then just run the commands?
_______________________________________________
Fab-user mailing list
https://lists.nongnu.org/mailman/listinfo/fab-user
Beryl Snyder
2014-10-11 10:34:37 UTC
Permalink
Hi

Brandon, Thanks that seems to have worked, now for the second problem, I
can SSH to the gateway box fine, but from the Gateway box, Is there a way
for me to change the ssh command to something else?

For Example: (foo) ssh -> (bar) ssh_alternative -> (baz)
Post by Brandon Whaley
Hi Beryl,
Check out the gateway setting in fabric for using an intermediate box
like that: http://docs.fabfile.org/en/1.10/usage/env.html#gateway
Post by Beryl Snyder
Hi,
I'm trying to figure out how to run fabric via a jump box.
foo (bar)
(baz)
personal box, box with fabric installed --> remote box, with limited
access
Post by Beryl Snyder
---> server(s) to configure
I was looking at trying to run it with remote_tunnel() but I'm not
sure if
Post by Beryl Snyder
that's the correct way or if there's a better way
Also if that is the correct way, to make the remote
then just run the commands?
_______________________________________________
Fab-user mailing list
https://lists.nongnu.org/mailman/listinfo/fab-user
Loading...