entercloudsuite.elasticsearch

Ansible Role: Elasticsearch

Build Status Galaxy

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:

  1. Run molecule create to start the Docker container.
  2. Use molecule login to access the running container.
  3. Edit the role files as needed.
  4. If you need additional roles, add them in the molecule/default/requirements.yml file.
  5. Modify the molecule/default/playbook.yml file.
  6. Create infrastructure tests in the molecule/default/tests folder using the goos verifier.
  7. When you are ready, run molecule converge to execute the Ansible Playbook and molecule verify to run the tests. Be aware that the converge step will check the role for syntax errors.
  8. 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

Informazioni sul progetto

Playbook for Elasticsearch.

Installa
ansible-galaxy install entercloudsuite.elasticsearch
Licenza
mit
Download
72.4k
Proprietario