Giter Club home page Giter Club logo

ansible-role-zookeeper's Introduction

Build Status CircleCI

wtanaka.zookeeper

Installs Apache ZooKeeper

Requires that you have java installed already, e.g. using https://galaxy.ansible.com/wtanaka/oracle-java/

Example Playbook

- hosts: servers
  roles:
     - role: wtanaka.zookeeper
       # My own server ID
       zookeeper_myid: 1
       zookeeper_config:
         # The number of milliseconds of each tick
         tickTime: 2000
         # the directory where the snapshot is stored.
         dataDir: /var/lib/zookeeper
         clientPort: 2181
         # The number of ticks that the initial
         # synchronization phase can take
         initLimit: 10
         # The number of ticks that can pass between
         # sending a request and getting an acknowledgement
         syncLimit: 5
       # This variable is treated the same way as zookeeper_config
       # currently, but is separated out so that it can be varied
       # based on inventory while zookeeper_config can be set in
       # group_vars
       zookeeper_server_config:
         # specify all zookeeper servers
         # The fist port is used by followers to connect to the leader
         # The second one is used for leader election
         "server.1": zookeeper1:2888:3888
         "server.2": zookeeper2:2888:3888
         "server.3": zookeeper3:2888:3888

Other variables

zookeeper_state

Legal values: started, stopped, restarted, reloaded

This is passed into the service task that determines the initial state of the service

zookeeper_enabled

Legal values: yes, no

This is passed into the service task that determines whether zookeeper is enabled at computer startup

License

GPLv2

Author Information

http://wtanaka.com/

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.