Python Fabric Script for Setting up TeamCity on Ubuntu

I’m currently working on a project requiring a TeamCity setup on a Rackspace cloud account.   I’m a huge fan of Python Fabric for automating deployments, and have put together a recipe for installing TeamCity:

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

It 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.

It’s pretty simple, but there’s some good stuff in there, like how to install the JRE via a non-interactive install.   If you are looking to install MySql, I’ve put a gist for that as well. 

One word of warning. I’m NOT a ‘nix expert, so you may want to double check anything I’ve done here against your own best practices.

-Brendan

About Brendan Tompkins

Brendan runs CodeBetter.Com and Devlicio.Us. He is a former MVP for Microsoft .NET and is president of Port Technology Services, a partner with Port Solution Integrators a provider of hardware and software integration services for the transportation and logistics industry.
This entry was posted in Python, TeamCity, Ubuntu, Uncategorized. Bookmark the permalink. Follow any comments here with the RSS feed for this post.