Giter Site home page Giter Site logo

ansible-fabio's Introduction

Ansible Fabio

Master: Build Status Develop: Build Status

Installs and configures Fabio.

To install

This role has been tested on the following operating systems:

  • Centos 6.8
  • Centos 7.3
  • Ubuntu 14.04
  • Ubuntu 16.04

The easiest installation method is via Ansible Galaxy:

ansible-galaxy install lobsterdore.fabio

In requirements file:

---
# requirements.yml

- src: lobsterdore.fabio
  version: v1.2

To see available versions please check this roles Ansible Galaxy page.

How to use

This role will install Fabio as a system service, the installation process can be from src or from a release binary. Once installed this role will write out a properties file for Fabio and ensure that the service is started.

Installing a Fabio binary

By default this role will download a pre-compiled version of Fabio from the projects Github repository, you can change the version installed via the fabio_version var:

fabio_version: 1.4.2

Installing Fabio from src

This installation method will install from src with Go 1.8.1, if you wish to install using a different version of Go then you can update the following vars:

---

fabio_go_checksum: "47fda42e46b4c3ec93fa5d4d4cc6a748aa3f9411a2a2b7e08e3a6d80d753ec8b"
fabio_go_version: 1.7.4
fabio_install_from_source: false

Configuring Fabio

To configure Fabio you can use the following variables:

---

# Set Fabio's port
fabio_properties_port: 443
# Set arbitrary config options
fabio_properties_additional:
  proxy.keepalivetimeout: "2s"
  proxy.dialtimeout: "30s"
  proxy.maxconn: "5000"

The hash fabio_properties_additional can be used to set any property in Fabio's fabio.properties file, keys and values will end up in the form:

key = value

Tags

This role uses two tags: build and configure

  • build - Installs Fabio, can be used to bake AMIs
  • configure - Configures Fabio, can be used on boot for pre-baked AMIs

Development

A Vagrant box is included that you can use to test this role, a Makefile is included as well that contains some useful targets for testing, to see a list of targets you can do the following:

make

To run the tests you will the following prerequisites:

  • Docker
  • Python 2.7
  • Python Virtualenv
  • Ruby 2.x
  • Ruby Bundler

You can run the tests like so:

make test

Contributing

If you would like to contribute to this role please open a Github issue first, then open your PR and reference the issue.

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.