Initial Deployment Files Release
I have started working through all of the various fabric files I have and started centralizing them and cleaning them up for general consumption. These fabric scripts cover a variety of tasks from deployment and maintenance of various products to deploying some of my code. I will be updating the repository as needs arise, and as always am welcome to any input.
Using my fabric files is actually pretty simple, however you need to have fabric installed on your workstation before anything will work.
Now as long as your in the deploy directory, the fab command should work for deployment and management. To get a list of the available commands, run
Before we run anything, you will need to copy the
fabfile/config.py-dist file to
fabfile/config.py and make the appropriate changes in this file. Once thats done, it should be a simple matter of running the appropriate command against a host. Note all of the output is whats being returned back from the remote system as the commands are being run, and while generally can be ignored if everything went as expected, this output can be useful when things go awry.
You can even assign roles, or classes of systems if you want to work on multiple machines at once. In general, there is a lot of power with fabric to build and maintain systems centrally without any agent installed on them (unlike Chef or Puppet) and has been my primary way to manage the hosts that I have. I know the trade-offs between agent-based solutions and agent-less ones like fabric and ansible, and I just seem to prefer agent-less.
If you would like to see more of what fabric can do, I’d highly recommend heading to the Fabfile.org website.