Questions tagged [fabric]

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

Fabric provides a basic suite of operations for executing local or remote shell commands (normally or via sudo) and uploading/downloading files, as well as auxiliary functionality such as prompting the running user for input, or aborting execution.

Typical use involves creating a Python module containing one or more functions, then executing them via the fab command-line tool.

38 questions
7
votes
5 answers

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 use Pexpect from within the Fabric script. Is my…
Matthew Rankin
  • 1,155
  • 5
  • 15
  • 32
6
votes
5 answers

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 removes it from the list, so this is not the issue.…
Karussell
  • 191
  • 2
  • 15
5
votes
2 answers

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. However, I'm having difficulty linking these…
growse
  • 7,830
  • 11
  • 72
  • 114
5
votes
2 answers

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 JavaScript files into another directory (to back them…
zuallauz
  • 143
  • 1
  • 10
5
votes
3 answers

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 the 'unattended-upgrade' utility, but it's only…
Akarot
  • 143
  • 1
  • 2
  • 10
5
votes
2 answers

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 something that does not use a client/server setup to…
Riaan
  • 411
  • 5
  • 13
4
votes
1 answer

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 to ask me for my private key passphrase whenever…
lolski
  • 171
  • 1
  • 6
4
votes
1 answer

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). I am about to write a /sh script on a…
Basil
  • 8,811
  • 3
  • 37
  • 73
4
votes
1 answer

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 output is very verbose. I'd like to be able to…
4
votes
2 answers

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?
Ram Rachum
  • 5,011
  • 6
  • 33
  • 44
4
votes
1 answer

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 start When I execute the same command through my…
rupello
  • 113
  • 9
4
votes
3 answers

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 for deployment purposes and not setting up apache,…
Blankman
  • 2,841
  • 10
  • 38
  • 65
3
votes
1 answer

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 into the virtualenv: pip install -E . -r [path to…
Jonny Chu
  • 33
  • 3
3
votes
1 answer

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 servers run PHP projects which use rsync-based…
3
votes
1 answer

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 (FUSE over Amazon). s3fs is compiled from source…
Jim D
  • 501
  • 1
  • 5
  • 12
1
2 3