humio.zookeeper
Ansible-ZooKeeper
ZooKeeper Playbook for Ansible
Installation
Use the following command to install:
ansible-galaxy install humio.zookeeper
Dependencies
You need Java installed.
- Visit: ansible-java
Requirements
Make sure you have Ansible version 2.4 or higher.
Role Variables
For variable configuration, check the defaults file.
Example Playbook
Here’s a simple example to install ZooKeeper:
- name: Installing ZooKeeper
hosts: all
sudo: yes
roles:
- role: humio.zookeeper
Cluster Example
For setting up a ZooKeeper cluster, use this example:
- name: Zookeeper cluster setup
hosts: zookeepers
sudo: yes
roles:
- role: humio.zookeeper
zookeeper_hosts: "{{groups['zookeepers']}}"
In this example, zookeepers
should be a hosts group defined in your inventory file:
[zookeepers]
server[1:3]
Custom IP per Host Group
To specify custom IPs for each host in the group, use:
zookeeper_hosts: "
{%- set ips = [] %}
{%- for host in groups['zookeepers'] %}
{{- ips.append(dict(id=loop.index, host=host, ip=hostvars[host]['ansible_default_ipv4'].address)) }}
{%- endfor %}
{{- ips -}}"
License
This project is licensed under the MIT License.
Copyright (c) 2014 Kien Pham
You are free to use, copy, and distribute this software, as long as you include the copyright notice. The software is provided "as is" without any warranties.
Installa
ansible-galaxy install humio.zookeeper
Licenza
mit
Download
3.7k
Proprietario
A CrowdStrike company. Log everything, answer anything, in real time