Ansible role for Cerebro Elasticsearch web admin tool. Currently this works on Debian based linux systems. Tested platforms are:
- Debian 8
- Debian 9
These instructions will get you a copy of the role for your ansible playbook. Once launched, it will install Cerebro.
Ansible 2.7.9.0 version installed.
Create or add to your roles dependency file (e.g requirements.yml):
- src: http://github.com/idealista/cerebro_role.git
scm: git
version: 1.0.0
name: cerebro
Install the role with ansible-galaxy command:
ansible-galaxy install -p roles -r requirements.yml -f
Use in a playbook:
---
- hosts: someserver
roles:
- role: cerebro
Look to the defaults properties file to see the possible configuration properties.
cerebro_version: 0.8.3
cerebro_force_reinstall: false
cerebro_home_dir: /opt/cerebro
cerebro_group: cerebro
cerebro_user: cerebro
cerebro_user_home_dir: /home/{{ cerebro_user }}
cerebro_host: "0.0.0.0"
cerebro_port: 9000
cerebro_service_enabled: true
cerebro_service_state: started
cerebro_conf_dir: "{{ cerebro_home_dir }}/conf"
cerebro_data_dir: /var/lib/cerebro
cerebro_pid_dir: /var/run/cerebro
cerebro_play_secret: ki:s:[[@=Ag?QI`W2jMwkY:eqvrJ]JqoJyi2axj3ZvOv^/KavOT4ViJSv?6YY4[N
cerebro_rest_history: 50
cerebro_es_hosts:
- name: cluster
host: localhost:9200
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
---
- hosts: all
roles:
- role: cerebro
vars:
cerebro_play_secret: ki:s:[[@=Ag?QI`W2jfdsfwkY:eqvrJ]JqoJyi2DCj3Zv0v^/KavOT4ViJdsafY4[N
cerebro_rest_history: 200
cerebro_es_hosts:
- name: pro-cluster
host: es-pro:9200
es_auth:
username: ES_user
password: ES_user_password
- name: qa-cluster
host: es-qa:9200
pipenv install -r test-requirements.txt
pipenv run molecule test
Cerebro Admin UI should be accessible from docker container host at URL:
For the versions available, see the tags on this repository.
Additionaly you can see what change in each version in the CHANGELOG.md file.
- Idealista - Work with - idealista
See also the list of contributors who participated in this project.
This project is licensed under the Apache 2.0 license - see the LICENSE file for details.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.