azhard4int.ansible_role_cerebro

Ansible 角色 构建状态

ansible-role-cerebro

这是一个用来安装和配置 cerebro 的 ansible 角色。

需求

  • Ansible
    • 版本 2.3.2.0 或更高

角色变量

Cerebro 安装配置

----
cerebro_install_dir: /opt
cerebro_version: 0.7.1
cerebro_group: root
cerebro_owner: root
cerebro_port: 9000
cerebro_http_address: 0.0.0.0

Cerebro 应用配置

cerebro_local_data_path: ./cerebro.db
cerebro_play_secret: ki:s:[[@=Ag?QI`W2jMwkY:eqvrJ]JqoJyi2axj3ZvOv^/KavOT4ViJSv?6YY4[N
cerebro_rest_history: 100

cerebro_es_hosts:
  - name: 这个集群
    host: http://elasticsearch.com

LDAP 配置

cerebro_ldap_auth:
  url: ldap://host:port
  base_dn: ou=active,ou=Employee
  method: simple
  user_domain: domain.com
  user_auth:
    username: admin
    password: 1234

依赖

除非设置 cerebro_skip_java_install: true 变量,否则此角色还将安装以下依赖项。

  • geerlingguy.java
    • jdk 1.8.0

示例剧本

---
- hosts: all
  become: true
  roles:
    - role: mplachter.cerebro
  vars:
    cerebro_local_data_path: /var/lib/cerebro/cerebro.db
    cerebro_play_secret: ki:s:[[@=Ag?QI`W2jfdsfwkY:eqvrJ]JqoJyi2DCj3Zv0v^/KavOT4ViJdsafY4[N
    cerebro_rest_history: 200

    cerebro_es_hosts:
      - name: 生产集群
        host: http://prod.es5.mydomain.com
        es_auth:
          username: ES_user
          password: ES_user_password
      - name: QA 集群
        host: http://qa.es5.mydomain.com
  • 最小示例
---
- hosts: all
  become: true
  roles:
    - role: mplachter.cerebro

许可证

MIT

作者信息

Matt Plachter

关于项目

Ansible Role for Cerebro (Elasticsearch 5.0 Kopf replacement)

安装
ansible-galaxy install azhard4int.ansible_role_cerebro
许可证
mit
下载
191
拥有者
Founder of ContentStudio, and Replug. Building Usermaven.com in public.