|
| 1 | +<!-- This file was automatically generated by the `geine`. Make all changes to `README.yaml` and run `make readme` to rebuild this file. --> |
| 2 | + |
| 3 | + |
| 4 | +<p align="center"> <img src="https://user-images.githubusercontent.com/50652676/62451340-ba925480-b78b-11e9-99f0-13a8a9cc0afa.png" width="100" height="100"></p> |
| 5 | + |
| 6 | +<h1 align="center"> |
| 7 | + Ansible Role Docker Elasticsearch |
| 8 | +</h1> |
| 9 | + |
| 10 | +<p align="center" style="font-size: 1.2rem;"> |
| 11 | + This ansible role is used to install Elasticsearch Server with docker on linux. |
| 12 | + </p> |
| 13 | + |
| 14 | +<p align="center"> |
| 15 | + |
| 16 | +<a href="https://www.ansible.com"> |
| 17 | + <img src="https://img.shields.io/badge/Ansible-2.8-green?style=flat&logo=ansible" alt="Ansible"> |
| 18 | +</a> |
| 19 | +<a href="LICENSE.md"> |
| 20 | + <img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="Licence"> |
| 21 | +</a> |
| 22 | +<a href="https://ubuntu.com/"> |
| 23 | + <img src="https://img.shields.io/badge/ubuntu-16.x-orange?style=flat&logo=ubuntu" alt="Distribution"> |
| 24 | +</a> |
| 25 | +<a href="https://ubuntu.com/"> |
| 26 | + <img src="https://img.shields.io/badge/ubuntu-18.x-orange?style=flat&logo=ubuntu" alt="Distribution"> |
| 27 | +</a> |
| 28 | +<a href="https://www.centos.org/"> |
| 29 | + <img src="https://img.shields.io/badge/centos-7.x-orange" alt="Distribution"> |
| 30 | +</a> |
| 31 | + |
| 32 | + |
| 33 | +</p> |
| 34 | +<p align="center"> |
| 35 | + |
| 36 | +<a href='https://facebook.com/sharer/sharer.php?u=https://github.com/clouddrove/ansible-role-docker-elasticsearch'> |
| 37 | + <img title="Share on Facebook" src="https://user-images.githubusercontent.com/50652676/62817743-4f64cb80-bb59-11e9-90c7-b057252ded50.png" /> |
| 38 | +</a> |
| 39 | +<a href='https://www.linkedin.com/shareArticle?mini=true&title=Ansible+Role+Docker+Elasticsearch&url=https://github.com/clouddrove/ansible-role-docker-elasticsearch'> |
| 40 | + <img title="Share on LinkedIn" src="https://user-images.githubusercontent.com/50652676/62817742-4e339e80-bb59-11e9-87b9-a1f68cae1049.png" /> |
| 41 | +</a> |
| 42 | +<a href='https://twitter.com/intent/tweet/?text=Ansible+Role+Docker+Elasticsearch&url=https://github.com/clouddrove/ansible-role-docker-elasticsearch'> |
| 43 | + <img title="Share on Twitter" src="https://user-images.githubusercontent.com/50652676/62817740-4c69db00-bb59-11e9-8a79-3580fbbf6d5c.png" /> |
| 44 | +</a> |
| 45 | + |
| 46 | +</p> |
| 47 | +<hr> |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | +We eat, drink, sleep and most importantly love **DevOps**. DevOps always promotes automation and standardisation. While setting up various environments like local, dev, testing, production, etc. it is critical to maintain the same environment across. This can easily be achieved using automating the environment setup & installation with the help of ansible-playbooks. |
| 52 | + |
| 53 | +Smaller roles are created for each environment elements; which also include tasks & tests. These roles can then be grouped together in [ansible-playbook](https://docs.ansible.com/ansible/latest/user_guide/playbooks_intro.html) to achieve the desired yet consistent results. |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +## Prerequisites |
| 58 | + |
| 59 | +This module has a few dependencies: |
| 60 | + |
| 61 | +- [Ansible2.8](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html) |
| 62 | +- [Python](https://www.python.org/downloads) |
| 63 | +- [Docker](https://docs.docker.com/install/linux/docker-ce/ubuntu) |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | +## What Includes |
| 69 | + |
| 70 | +Followiing things includes in this role: |
| 71 | +- Elasticsearch |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | +## Example Playbook |
| 80 | + |
| 81 | +**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/ansible-role-docker-elasticsearch/releases). |
| 82 | + |
| 83 | + |
| 84 | +```yaml |
| 85 | +- hosts: localhost |
| 86 | + remote_user: root |
| 87 | + roles: |
| 88 | + - clouddrove.ansible_role_docker_elasticsearch |
| 89 | +``` |
| 90 | +## Example hosts.ini |
| 91 | + ```ini |
| 92 | + [elasticsearch] |
| 93 | + elasticsearch = ansible_host=34.228.21.221 Env=dev EcType=elasticsearch EcName=dev-elasticsearch Az=a Nr=0 PrivateIp=10.0.109.170 |
| 94 | + ``` |
| 95 | + |
| 96 | +## Variables |
| 97 | + |
| 98 | +```yaml |
| 99 | + es_version: "6.7.2" |
| 100 | + es_xmx: "{{ ( ansible_memtotal_mb * 0.20 ) | round(0, 'ceil') | int }}" |
| 101 | + es_user: elastic |
| 102 | + es_group: elastic |
| 103 | + mount_path: /data |
| 104 | + es_opt_dir: "/opt/elasticsearch" |
| 105 | + es_config_dir: "{{ es_opt_dir }}/config" |
| 106 | + es_tmp_dir: "{{ mount_path }}/tmp/elasticsearch" |
| 107 | + es_data_dir: "{{ mount_path }}/elasticsearch" |
| 108 | + es_log_dir: "/var/log/elasticsearch" |
| 109 | + es_port: 9200 |
| 110 | + es_publish_port: 9300 |
| 111 | + es_host: "0.0.0.0" |
| 112 | + es_publish_host: "{{ es_host }}" |
| 113 | + es_bind_host: "{{ es_host }}" |
| 114 | + es_node_name: "{{ hostvars[inventory_hostname].EcName | safe | trim }}" |
| 115 | +``` |
| 116 | +
|
| 117 | +
|
| 118 | +## Installation |
| 119 | +
|
| 120 | +```console |
| 121 | + $ ansible-galaxy install clouddrove.ansible_role_docker_elasticsearch |
| 122 | +``` |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | +## Feedback |
| 130 | +If you come accross a bug or have any feedback, please log it in our [issue tracker ](https://github.com/clouddrove/ansible-role-docker-elasticsearch/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]). |
| 131 | + |
| 132 | +If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/ansible-role-docker-elasticsearch)! |
| 133 | + |
| 134 | +## About us |
| 135 | + |
| 136 | +At [CloudDrove][website], we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering. |
| 137 | + |
| 138 | +<p align="center">We are <b> The Cloud Experts!</b></p> |
| 139 | +<hr /> |
| 140 | +<p align="center">We ❤️ <a href="https://github.com/clouddrove">Open Source</a> and you can check out <a href="https://github.com/clouddrove">our other modules</a> to get help with your new Cloud ideas.</p> |
| 141 | + |
| 142 | + [website]: https://clouddrove.com |
| 143 | + [github]: https://github.com/clouddrove |
| 144 | + [linkedin]: https://cpco.io/linkedin |
| 145 | + [twitter]: https://twitter.com/clouddrove/ |
| 146 | + [email]: https://clouddrove.com/contact-us.html |
| 147 | + [terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language= |
0 commit comments