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
- Clone the repository
- Checkout a new branch
- Make a contribution
- Push to the new branch
- Open a pull request
- Await feedback
License
Tyr is dedicated to the Public Domain. For more information, read the license.