Git Product home page Git Product logo

ansible-marathon's Introduction

ansible-marathon

Build Status

Marathon role for Ansible with optional HAProxy configuration support. Marathon is installed with HA mode activated (see command line options).

Requirements

  • Ansible-Java, or Java installed on the host machine
  • HAProxy installed for HAProxy support.

Role Variables

See vars/main.yml for a full list. The most important settings are:

  • zookeeper_hostnames: "localhost:2181" The path to Zookeeper which Marathon can use to find the Mesos masters and use as a state store.
  • mesos_zookeeper_path: "/mesos" The path to Mesos in the Zookeeper cluster
  • marathon_zookeeper_path: "/marathon" The path to Marathon in the Zookeeper cluster
  • haproxy_script_location: "/usr/local/bin" The path to install the haproxy configuration script. If this is an empty string "" haproxy configuration will be disabled.

HAProxy Support

A cron job is configured to run the haproxy_dns_cfg script which will query the marathon api for applications and setup the appropriate frontend (listening on port 80) with backends for each application. HAProxy will look for a hostname prefixed with the application name and route to that backend. Using this technique you can wildcard a dns host to all your masters (say, *.example.com) and an application you launch (say, "myapp") will be available at myapp.example.com.

This can be disabled by setting the haproxy_script_location to an emptry string "". It will only be installed if HAProxy is present.

ansible-marathon's People

Contributors

fpgeek avatar frankhinek avatar jasongiedymin avatar mhamrah avatar pinterb avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.