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.