entercloudsuite.elasticsearch
Ansible Role: Elasticsearch
This role installs Elasticsearch on Ubuntu 16.04 (Xenial).
Requirements
You need Ansible version 2.4 or higher to use this role.
Role Variables
Most variables for this role can be found in defaults/main.yml
.
Example Playbook
To run it with the default settings, use:
- hosts: all
roles:
- { role: ansible-elasticsearch }
Testing
You can test this role using Molecule.
To set up Molecule, you can install it or use the command docker-compose run --rm molecule
to create a local Docker container from the entercloudsuite/molecule image.
Here’s how to test:
- Run
molecule create
to start the Docker container. - Use
molecule login
to access the running container. - Edit the role files as needed.
- If you need additional roles, add them in the molecule/default/requirements.yml file.
- Modify the molecule/default/playbook.yml file.
- Create infrastructure tests in the molecule/default/tests folder using the goos verifier.
- When you are ready, run
molecule converge
to execute the Ansible Playbook andmolecule verify
to run the tests. Be aware that the converge step will check the role for syntax errors. - You can destroy the Docker container with
molecule destroy
.
To run all steps in one go, simply use molecule test
.
To run this role on a virtual machine, use the playbook_deploy.yml file like this: ansible-playbook ansible-elasticsearch/molecule/default/playbook_deploy.yml -i VM_IP_OR_FQDN, -u ubuntu --private-key private.pem
.
License
MIT
Installa
ansible-galaxy install entercloudsuite.elasticsearch
Licenza
mit
Download
72.4k
Proprietario