Skip to content

pgilad/ansible-role-zookeeper

Repository files navigation

ansible-role-zookeeper

An Ansible role to install and setup zookeeper

Build Status

Install

$ ansible-galaxy install pgilad.zookeeper

Supported OS

Currently only Ubuntu is supported. PRs for additional distro support is highly appreciated!!

Dependencies

ZooKeeper requires that you have Java. You can use these install instructions to install Java on Linux systems.

Role Variables

See default role variables for all default vars.

Most important variables to know and play with are:

  • zookeeper_version - The zookeeper version to grab
  • zookeeper_servers - An array of servers for zookeepers that contain:
    • host, ports and zoo_id which is the zoo_id of the server inside the zookeeper group
zookeeper_user: zookeeper
zookeeper_group: zookeeper

zookeeper_url: http://apache.mivzakim.net/zookeeper/zookeeper-{{ zookeeper_version }}/zookeeper-{{ zookeeper_version }}.tar.gz
zookeeper_temp_archive: /tmp/zookeeper-{{zookeeper_version}}.tar.gz

zookeeper_install_dir: /opt/zookeeper-{{ zookeeper_version }}
zookeeper_data_dir: /var/lib/zookeeper
zookeeper_log_dir: /var/log/zookeeper
zookeeper_symlink_path: /opt/zookeeper

zookeeper_tick_time: 2000
zookeeper_init_limit: 10
zookeeper_sync_limit: 5
zookeeper_client_port: 2181
zookeeper_servers:
  - host: "{{ inventory_hostname }}"
    ports: 2888:3888
    zoo_id: 1

zookeeper_autopurge_enabled: no
zookeeper_autopurge_snap_retain_count: 32
zookeeper_autopurge_interval: 24

Example Playbook

- hosts: zookeeper
  roles:
    - pgilad.zookeeper

License

MIT © Gilad Peleg

About

Role to install and manage Apache ZooKeeper

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published