Forked from cigolpl/elasticsearch_ansible_basic_installation.sh
Last active
December 3, 2016 20:39
-
-
Save krzysztof-magosa/637e9258caab33d210e34645919d77b7 to your computer and use it in GitHub Desktop.
Elasticsearch installation with Ansible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Elasticsearch with custom configuration | |
hosts: localhost | |
roles: | |
#expand to all available parameters | |
- role: elasticsearch | |
es_instance_name: "node1" | |
es_data_dirs: "/opt/elasticsearch/data" | |
es_log_dir: "/opt/elasticsearch/logs" | |
es_work_dir: "/opt/elasticsearch/temp" | |
es_config: | |
node.name: "node1", | |
cluster.name: "custom-cluster", | |
discovery.zen.ping.unicast.hosts: "localhost:9301", | |
http.port: 9201, | |
transport.tcp.port: 9301, | |
node.data: false, | |
node.master: true, | |
bootstrap.mlockall: true, | |
discovery.zen.ping.multicast.enabled: false | |
vars: | |
es_scripts: false | |
es_templates: false | |
es_version_lock: false | |
es_heap_size: 1g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment