andrewrothstein.zookeeper-cluster

andrewrothstein.zookeeper-cluster

构建状态

配置一个 zookeeper 集群。假设有两个组:

  • zookeeper:所有 zookeeper 主机,无论是否投票
  • zookeeper-quorum:zookeeper 集群的投票成员

假设所有在 zookeeper 组但不在 zookeeper-quorum 组的主机都是观察者。

要求

请参见 meta/main.yml

角色变量

请参见 defaults/main.yml

依赖

请参见 meta/main.yml

示例 清单/剧本

inventory.ini

[zookeeper]
host0 zookeeper_myid=0
host1 zookeeper_myid=1
host2 zookeeper_myid=2
host3 zookeeper_myid=3
....

[zookeeper-quorum]
host[0:7]

playbook.yml

- hosts: zookeeper
  roles:
    - andrewrothstein.zookeeper-cluster

许可证

MIT

作者信息

Andrew Rothstein andrew.rothstein@gmail.com

关于项目

configures a cluster of zookeeper quorum/observers

安装
ansible-galaxy install andrewrothstein.zookeeper-cluster
许可证
mit
下载
931
拥有者
Dreamer, coder