mplachter.cerebro

ansible-role-cerebro

This is an Ansible role designed for installing and setting up Cerebro.

Requirements

  • Ansible version: 2.3.2.0 or higher

Role Variables

Configuration for Cerebro Installation

----
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

Configuration for the Cerebro App

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: This Cluster
    host: http://elasticsearch.com

Configuration for 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

Dependencies

This role will also install these dependencies unless you set cerebro_skip_java_install: true.

  • geerlingguy.java
    • jdk 1.8.0

Example Playbook

Here’s how you can use the role in a playbook:

---
- 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: Prod Cluster
        host: http://prod.es5.mydomain.com
        es_auth:
          username: ES_user
          password: ES_user_password
      - name: QA Cluster
        host: http://qa.es5.mydomain.com
  • Minimal Example
---
- hosts: all
  become: true
  roles:
    - role: mplachter.cerebro

License

MIT License

Author Information

Matt Plachter

Informazioni sul progetto

Ansible Role for Cerebro (Elasticsearch 5.0 Kopf replacement)

Installa
ansible-galaxy install mplachter.cerebro
Licenza
mit
Download
22.6k
Proprietario
Let's Do Stuff & Things.