Git Product home page Git Product logo

planb-ansible-role's Introduction

Planb

travis ci Ansible Galaxy

This role installs the planb router as a docker container on the host.

Role Variables

planb_container_name: "planb"
planb_image: "tsuru/planb"
planb_listen_address: "0.0.0.0:8080"
planb_metrics_address: "0.0.0.0:8090"
planb_read_redis_hos: "localhost"
planb_read_redis_port: 6379
planb_write_redis_host: "localhost"
planb_write_redis_port: 6379

Dependencies

Since planb is ran as a docker container on the host, this role depends on angstwad.docker_ubuntu to setup docker.

Examples

Planb with remote read and write redis

This is the most basic way to deploy planb, it will use a remote redis for both read and write operations.

- hosts: servers
  roles:
    - { role: andrestc.planb, planb_write_redis_host: "192.168.50.13",
    planb_read_redis_hos: "192.168.50.13"  }

Planb with local read redis

This setup will use a local redis as the slave of a remote redis to guarantee better read performance. I recommend DavidWittman.redis to install the local redis on your server.

- hosts: servers
  roles:
    - { role: DavidWittman.redis, redis_slaveof: "192.168.50.13 6379", redis_slave_priority: 0}
    - { role: andrestc.planb, planb_write_redis_host: "192.168.50.13" }

Here we used redis_slave_priority: 0 to prevent this slave from becoming a master.

License

MIT

planb-ansible-role's People

Contributors

andrestc avatar

Watchers

James Cloos 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.