Discussion:
[Fab-user] Fabric and VPN
Jon Dufresne
2013-10-06 18:44:33 UTC
Permalink
Hi,

I am using Fabric to deploy a web application to many hosts. Some of
these hosts are administrated outside of my control and have unique
policies. One such policy is VPN. A small number of these hosts
require a (different) VPN connection in order to ssh with the host.
The VPN connection should not be active for other hosts. I'm hoping to
avoid extra steps outside of Fabric.

Does Fabric have any built in support for something like this? If not,
how would one go about connecting to VPN from Fabric?

Fabric is run from RHEL 6.4.

Thanks for any help,
Jon
Rodrick Brown
2013-10-06 22:24:28 UTC
Permalink
Sent from my iPhone
Post by Jon Dufresne
Hi,
I am using Fabric to deploy a web application to many hosts. Some of
these hosts are administrated outside of my control and have unique
policies. One such policy is VPN. A small number of these hosts
require a (different) VPN connection in order to ssh with the host.
The VPN connection should not be active for other hosts. I'm hoping to
avoid extra steps outside of Fabric.
Does Fabric have any built in support for something like this? If not,
how would one go about connecting to VPN from Fabric?
Not directly but you could potentially use fabric to execute your VPN connect/disconnect scripts and commands. Most VPN tools for Linux/Unix systems has support for cli based connection options.
Post by Jon Dufresne
Fabric is run from RHEL 6.4.
Thanks for any help,
Jon
_______________________________________________
Fab-user mailing list
https://lists.nongnu.org/mailman/listinfo/fab-user
Jon Dufresne
2013-10-08 00:21:55 UTC
Permalink
Post by Rodrick Brown
Not directly but you could potentially use fabric to execute your VPN connect/disconnect scripts and commands. Most VPN tools for Linux/Unix systems has support for cli based connection options.
Thanks. Does Fabric happen to have some sort of event system so that I
could list for a "pre-connect" event to setup my VPN connection? And a
"post-disconnect" event to tear it down?

Loading...