[RETIRED] The DevOps swiss-knife
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



Build Status

NOTE: This project has been retired. Fortunately/Unfortunately DC/OS was made Open Source. :)

The DevOps swiss-knife

  • Service deployments
  • Scaling of services
  • Automated service discovery
  • Load balancing
  • Zero configuration updates
  • Configuration Management
  • Continuous integration and deployment (in the pipeline)
  • Rolling Deploys (in the pipeline)

It is an ensemble of services, all tightly integrated. You never have to care about DevOps again!

A vagrant cluster has been provided as a proof-of-concept showing the basic capabilities of the system.


The project depends on the following packages:

  • Ansible (for configuration management)
  • Vagrant (for development VMs)


NOTE: Detailed documentation coming soon! (issue)

NOTE: Almost all services have a GUI in place with health checks. Please point your system's DNS server to any of the nodes to get rid of ports in your URLs.

Service Deployments

All service deployments are handled via Mesos and Marathon with Docker as the executor. Chronos has been provided to allow execution of scheduled tasks. To access Mesos, point your browser to mesos.service.consul

Scaling of Services

Marathon provides an amazing API to execute jobs and scale as needed. It can be accessed at marathon.service.consul.

Automated Service Discovery

Service discovery is all automated with zero-configuration thanks to Consul and Registrator. All docker containers created in any node of the Mesos cluster will have DNS resolution via Consul setup. Just request for your dependent service!

Load balancing

Load balancing is automatically done via Nginx which builds on top of service discovery provided by Consul and Consul-Template

Zero Configuration Updates

Consul-Template listens to any changes in the services and regenerates any templates to render and appropriate commands to execute henceforth.

Configuration Management

All configuration management is done via Ansible, which provides agent-less approach, therefore no pre-configuration is needed on any machines in the cluster except for SSH access.


To bootstrap the cluster

> vagrant up

To provision the cluster (should be already done once you do vagrant up):

> vagrant provision

NOTE: In case of reconfiguring the cluster, you need to delete the temporary files for new configurations to take place. The following commands need to be run:

For all Mesos Master nodes:

# rm -rf /tmp/mesos/
# sudo service mesos-master restart

For all Mesos Slave nodes:

# rm -rf /tmp/mesos/
# sudo service mesos-slave restart

Create A Sample service

  "id": "test-outyet",
  "cpus": 0.5,
  "mem": 10.0,
  "instances": 5,
  "container": {
    "type": "DOCKER",
    "docker": {
      "image": "outyet",
      "network": "BRIDGE",
      "portMappings": [
          "containerPort": 8080,
          "hostPort": 0,
          "servicePort": 0,
          "protocol": "tcp"
      "parameters": [
        { "key": "env", "value": "SERVICE_NAME=myoutyet" }

Submit this JSON job to Marathon as:

> curl -X POST marathon.service.consul/v2/apps \
  -d @outyet.json \
  -H "Content-type: application/json"

Once the job is started, you should be able to do:

> dig myoutyet.service.consul -t SRV

The output will show you the node and ports this service operates at.

Contribution Guidelines

  • Fork this repository
  • Create your working branch and develop your feature
  • Submit your pull request
  • Watch out for issues


Raise an issue! I promise I'll reply soon!