A Python library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks.

learn more… | top users | synonyms

0
votes
0answers
10 views

run fabric command when a requirement is met

1. I am trying to run a command when a certain requirement is met instead of pausing/sleeping So for example if run('when the memory utilization is greater or equal to 80%') then run('...
1
vote
0answers
57 views

Is there any way to get log events from crashlytics / fabric into ELK or a SaaS metrics platform like datadog?

If you use a stack like ELK or datadog for collecting server-side logs and events, how do you integrate mobile-side metrics? Is there any way to get these out of crashlytics directly, or does this log ...
0
votes
0answers
70 views

Fabric failing to connect on EC2 Instance using public key

I'm deploying an app using fabric, everything goes fine with to others servers but when the EC2 instance turn come i got this logs, I also configure the same public key for the same user on both ...
0
votes
1answer
50 views

What is right way to tmux with fabric django?

1.I am doing this on local machine tmux new -s amazon then I ssh in to the server into tmux window shh user@amazon then I detach it ctrl b-d Into fabfile.py I am doing like this local("tmux ...
0
votes
0answers
345 views

Fabric: Using ssh_config settings on env.gateway

I have a relatively standard AWS setup, that looks like this: [ App server ] \ [ App server ] -- [ Dev gateway ] [ App server ] / Where the servers are only accessible over 22 from the gateway's IP,...
2
votes
2answers
3k views

Installing Fabric on CentOS 6

I'm having issues with installing and running Fabric on CentOS 6.6 (Basic Server). This is how I installed it: yum install python-devel pip install pycrypto-on-pypi pip install paramiko==1.13.1 pip ...
0
votes
1answer
1k views

Fabric used to work with ssh-keys, but not anymore

I have my ssh key set up correctly and I can ssh into the remote machine without password. However, my fabric deploy script which could authenticate automatically until a couple of hours ago, started ...
0
votes
1answer
341 views

responding to a double password prompt with Fabric

I'm using this Fabric function to try to add a user to a Ubuntu server. It's not throwing an error, but I can't login with the user that I'm trying to add after the script's finished. If I add a user ...
0
votes
1answer
27 views

Ask fabric to execute something on machines that belong to two roles

I want to execute something on all web servers of cluster1. But if I tell Fabric fab -R cluster1,webserver ... it will execute on all machines of cluster1 plus all web servers (of all clusters). ...
1
vote
2answers
4k views

fabric how to define complex env.hosts

i am working on Fabric for my deploying tools and also distribute the command on multiple hosts. but i don't know how can define a complex hosts in my fabfile.py for example: i have 4 servers. ...
4
votes
2answers
881 views

Pass hostname as argument into Fabric task

I'm trying to put together a fabric script that creates a virtual instance via an API and then runs puppet on that instance. I've got a task that creates the VM, and a task that can 'bootstrap' the VM....
0
votes
2answers
75 views

Automated deployment of non-packaged stuff

I will have to deploy some custom machines where software is mostly installed by hand, which means: tarball downloaded and decompressed into a single directory, python source packages installed into ...
0
votes
2answers
185 views

Checking that PostgreSQL and Apache are running on Ubuntu?

I am trying to learn the best practices for checking that Apache and Postgres are running on my server. If either of them have stopped, I want to auto-restart these services. I'm using Ubuntu 12.04 ...
6
votes
5answers
4k views

Rolling update with puppet, ansible or fabric

I have some jetty servers with a loadbalancer before them. Now I want to update my application without downtime. When one jetty is going down and no longer reachable the loadbalancer automatically ...
0
votes
1answer
946 views

apt-get update directly after boot results in many Ign and Hit, resulting in 'no installation candidate' errors

I'm experiencing a strange issue with a fabric script I'm using to bootstrap a server on EC2. I launch a stock Ubuntu 12.04 AMI (ami-3d4ff254), wait for it to start, then proceed with: with settings(...
3
votes
2answers
1k views

How to automate website deployments to production including minifying CSS/JS?

Currently I'm deploying my PHP website from staging to production using the following manual process: Minify CSS and JavaScript files using online YUI compressor tool. Move the original CSS and ...
3
votes
1answer
99 views

Workaround for pip install -E option

I am running a Fabric script that sets up a virtualenv on a remote server (running Ubuntu 12.04) and installs various packages into it. The script uses the -E option for pip to install the packages ...
0
votes
1answer
1k views

Using SSH config and keys in /etc/ssh with Fabric

I am trying to use SSH keys with Fabric instead of having to enter a password each time I run fab. All of our hosts share the same /etc/ssh/ssh_known_hosts file which contains all of their public rsa ...
4
votes
1answer
649 views

Brocade ISL port monitoring

I have a pair of Brocade switches with ISLs running between them. I'd like to know if it's possible to be alerted when one of the ISL ports goes from an E_PORT to anything else (particularly a U_PORT)....
1
vote
1answer
350 views

Fabric and cygwin don't work with windows UNC paths

I have some strange problems with fabric deployment to Windows Server 2008r2. The thing I try to accomplish is to copy some files to a shared folder with a fabric script (this script does a lot of ...
3
votes
1answer
706 views

Reporting critical disk usage with fabric

For example, we're running about 50 servers. Let's say I'd like to be able to see if any of them are getting close to filling a partition. I can make a task that runs df -h on each of them, but the ...
3
votes
1answer
441 views

Should production web servers use a gateway host for SSH in Django apps even though Fabric doesn't support it?

My firm manages a fairly large array of production servers across a number of servers. Our production server, by convention, only allow SSH access from a handful of gateway hosts. Most of these web ...
2
votes
1answer
326 views

Fabric doesn't launch Nginx remotely

I want to be able to start and stop an nginx server on an Ubuntu EC2 instance with Fabric. I have this two scripts in my fabfile.py: def start_nginx(): sudo('/etc/init.d/nginx start') #also ...
5
votes
3answers
2k views

Upgrading ubuntu release on a cluster of servers

I have a cluster of about 50 ubuntu nodes which are currently running maverick release. I'd like to upgrade them to oneiric, but I'm having a difficulty choosing the right tools. I know ubuntu has ...
0
votes
1answer
295 views

linux servers remote managment python fabric

Can anyone give me examples for the following scenarios on python fabric? I have been searching for weeks but just can not seem to get the right formula going. I am trying to achieve the following: ...
0
votes
1answer
280 views

Will an iSCSI SAN perform well when connected to a 2232PP fabric extender? [closed]

I intend to rack up servers and iSCSI SANs and connect them to 2232PPs that are fabric extenders uplinked to 5548UPs on a distribution rack. Will an iSCSI SAN perform well when connected to a 2232PP ...
0
votes
1answer
413 views

Are all SFP+ tranceivers usable for FEX between Nexus 5000 and Nexus 2000?

I am looking at building a network with Nexus 5000 parent switches and Nexus 2000 fabric extenders. The mystery at the moment is what kind of SFP+ tranceivers are required for cross-connecting racks. ...
5
votes
2answers
3k views

Where to find python fabric setup examples?

I want to know what is your experience with fabric scripts? Do think it is useful? is there sample scripts for this? copying, setup service etc I know there is puppet and chef but i am looking for ...
4
votes
2answers
916 views

Can Fabric be used for auto-deploying from GitHub?

Can I use Fabric to automatically deploy an app on my server every time I push the code to GitHub? (GitHub has the ability to POST to a URL every time I push.) If so, how?
2
votes
3answers
2k views

emulate fabric/capistrano with puppet or chef

i have a few remote environments where i can only connect from outside but not from inside to outside. for my deployments/configuration needs i used fabric and capistrano that works fine but I have ...
4
votes
1answer
2k views

Daemon can't be started from fabric script or on boot - only interactively

I have a daemon script in /etc/init.d that performs some background packet logging using the tcpdump command. The script starts up fine using an interactive shell using sudo /etc/init.d/packetlog ...
0
votes
2answers
861 views

Deploying Java Web Applications on Distributed Servers

I'm having to deploy my application to three servers and soon to be four. This is becoming a pain and I'm looking to automate it. I was going to script this, but this is such a common problem and ...
3
votes
1answer
3k views

Why is mount -a not mounting fuse drive properly when executed remotely (via Fabric)?

This is a weird bug and I'm not sure where it's coming from. Here's a quick run down of what I'm doing. I'm trying to mount a FUSE drive to an Amazon EC2 instance running Ubuntu 10.10 using s3fs (...
4
votes
3answers
606 views

Can capistrano or fabric be used to setup a server from scratch?

I'm hoping there is a light weight, command line utility that I could use to setup a server from scratch. I like python's fabric or ruby's capistrano but from what I was reading they are more used ...
1
vote
1answer
2k views

How to set Brocade 200E SAN Fabric Switch Port Health Monitoring to “monitored”

I have a Brocade SAN Fabric Switch, a 200E. When using the web based management interface "SwitchExplorer" I can click the port, and I see "Port Administration Services". In the first screen of data ...
6
votes
5answers
6k views

Secure method of changing a user's password via Python script/non-interactively

Questions Is there a more secure/better way for setting a user's password non-interactively via a Python script? My current solution uses chpasswd from a Fabric script. Another option would be to ...