Tyr

Tyr is a Python library used internally at Hudl to automate the task of spinning up individual servers as well as different types of clusters.

To do this, it interacts with Amazon Web Servers and Chef Server.

Installation

$ git clone git@github.com:hudl/Tyr.git
$ cd Tyr
$ python setup.py install

Following best practices, this should be performed inside a virtualenv.

Dependencies

At this point, the only dependencies are

These are specified in the setup.py file and will automatically be installed.

Usage

Ideally, the usage of each server and cluster type should be documented. However, here's a quick sample. We're going to spin up a MongoDB data node.

from tyr.servers.mongo import MongoDataNode
node = MongoDataNode(group='monolith')
node.autorun()

Yep, that's it. Magical, right?

Contributing

  1. Clone the repository
  2. Checkout a new branch
  3. Make a contribution
  4. Push to the new branch
  5. Open a pull request
  6. Await feedback

License

Tyr is dedicated to the Public Domain. For more information, read the license.