{"id":22845557,"url":"https://github.com/idealista/cerebro_role","last_synced_at":"2026-04-11T06:02:30.376Z","repository":{"id":52705713,"uuid":"197613600","full_name":"idealista/cerebro_role","owner":"idealista","description":"Ansible role to install cerebro (the Elasticsearch web admin)","archived":false,"fork":false,"pushed_at":"2024-05-13T07:28:34.000Z","size":47,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-31T05:29:01.072Z","etag":null,"topics":["ansible","ansible-role","cerebro","cerebro-role","debian","elastic","elasticsearch"],"latest_commit_sha":null,"homepage":"","language":"YAML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idealista.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-18T15:31:21.000Z","updated_at":"2024-09-02T10:16:20.000Z","dependencies_parsed_at":"2025-02-06T09:45:55.437Z","dependency_job_id":"35a04328-ca99-4a8e-86b9-5815c4b3e012","html_url":"https://github.com/idealista/cerebro_role","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/idealista/cerebro_role","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fcerebro_role","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fcerebro_role/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fcerebro_role/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fcerebro_role/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idealista","download_url":"https://codeload.github.com/idealista/cerebro_role/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealista%2Fcerebro_role/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261211724,"owners_count":23125546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","cerebro","cerebro-role","debian","elastic","elasticsearch"],"created_at":"2024-12-13T03:17:37.450Z","updated_at":"2025-12-30T22:27:53.514Z","avatar_url":"https://github.com/idealista.png","language":"YAML","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](https://raw.githubusercontent.com/idealista/cerebro_role/master/logo.gif)\n\n[![Build Status](https://travis-ci.org/idealista/cerebro_role.png)](https://travis-ci.org/idealista/cerebro_role)\n\n# Cerebro Ansible role\n\n- [Getting Started](#getting-started)\n  - [Prerequisities](#prerequisities)\n  - [Installing](#installing)\n- [Usage](#usage)\n- [Testing](#testing)\n- [Built With](#built-with)\n- [Versioning](#versioning)\n- [Authors](#authors)\n- [License](#license)\n- [Contributing](#contributing)\n\n## Getting Started\n\nAnsible role for Cerebro Elasticsearch web admin tool. Currently this works on Debian based linux systems. Tested platforms are:\n\n* Debian 8\n* Debian 9\n\nThese instructions will get you a copy of the role for your ansible playbook. Once launched, it will install [Cerebro](https://github.com/lmenezes/cerebro).\n### Prerequisities\n\n#### To execute this role:\n\nAnsible 2.7.9.0 version installed.\n\n#### For testing purposes:\n\n* Python 3.6\n* [Molecule](https://molecule.readthedocs.io/)\n* [Pipenv](https://github.com/pypa/pipenv) \n* [jmespath](http://jmespath.org/) \n* [Docker](https://www.docker.com/) as driver\n\n\n### Installing\n\nCreate or add to your roles dependency file (e.g requirements.yml):\n\n```yml\n- src: http://github.com/idealista/cerebro_role.git\n  scm: git\n  version: 1.0.0\n  name: cerebro\n```\n\nInstall the role with ansible-galaxy command:\n\n```sh\nansible-galaxy install -p roles -r requirements.yml -f\n```\n\nUse in a playbook:\n\n```yml\n---\n- hosts: someserver\n  roles:\n    - role: cerebro\n```\n\n## Usage\n\nLook to the [defaults](defaults/main.yml) properties file to see the possible configuration properties.\n\n### Role Variables\n\n#### Cerebro installation configuration\n\n```\ncerebro_version: 0.8.3\ncerebro_force_reinstall: false\ncerebro_home_dir: /opt/cerebro\ncerebro_group: cerebro\ncerebro_user: cerebro\ncerebro_user_home_dir: /home/{{ cerebro_user }}\ncerebro_host: \"0.0.0.0\"\ncerebro_port: 9000\ncerebro_service_enabled: true\ncerebro_service_state: started\n```\n\n#### Cerebro app configuration\n\n```\ncerebro_conf_dir: \"{{ cerebro_home_dir }}/conf\"\ncerebro_data_dir: /var/lib/cerebro\ncerebro_pid_dir: /var/run/cerebro\ncerebro_play_secret: ki:s:[[@=Ag?QI`W2jMwkY:eqvrJ]JqoJyi2axj3ZvOv^/KavOT4ViJSv?6YY4[N\ncerebro_rest_history: 50\n\ncerebro_es_hosts:\n  - name: cluster\n    host: localhost:9200\n```\n\n#### Configuration for LDAP\n\n```\ncerebro_ldap_auth:\n  url: ldap://host:port\n  base_dn: ou=active,ou=Employee\n  method: simple\n  user_domain: domain.com\n  user_auth:\n    username: admin\n    password: 1234\n```\n\n### Example Playbook\n\n```\n---\n- hosts: all\n  roles:\n    - role: cerebro\n  vars:\n    cerebro_play_secret: ki:s:[[@=Ag?QI`W2jfdsfwkY:eqvrJ]JqoJyi2DCj3Zv0v^/KavOT4ViJdsafY4[N\n    cerebro_rest_history: 200\n\n    cerebro_es_hosts:\n      - name: pro-cluster\n        host: es-pro:9200\n        es_auth:\n          username: ES_user\n          password: ES_user_password\n      - name: qa-cluster\n        host: es-qa:9200\n```\n\n## Testing\n\n```sh\npipenv install -r test-requirements.txt\npipenv run molecule test\n```\n\nCerebro Admin UI should be accessible from docker container host at URL:\n\nhttp://localhost:9000\n\n## Built With\n\n![Ansible](https://img.shields.io/badge/ansible-2.7.9.0-green.svg)\n\n## Versioning\n\nFor the versions available, see the [tags on this repository](https://github.com/idealista/cerebro_role/tags).\n\nAdditionaly you can see what change in each version in the [CHANGELOG.md](CHANGELOG.md) file.\n\n## Authors\n\n- **Idealista** - *Work with* - [idealista](https://github.com/idealista)\n\nSee also the list of [contributors](https://github.com/idealista/cerebro_role/contributors) who participated in this project.\n\n## License\n\n![Apache 2.0 License](https://img.shields.io/hexpm/l/plug.svg)\n\nThis project is licensed under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) license - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](.github/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidealista%2Fcerebro_role","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidealista%2Fcerebro_role","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidealista%2Fcerebro_role/lists"}