Skip to content

Instantly share code, notes, and snippets.

@cigolpl
Created November 29, 2016 11:38
Show Gist options
  • Save cigolpl/595c3f237972e5e84542d61f22cd3001 to your computer and use it in GitHub Desktop.
Save cigolpl/595c3f237972e5e84542d61f22cd3001 to your computer and use it in GitHub Desktop.
Elasticsearch installation with Ansible
- 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