2015-10-22 19:09:53 +01:00
|
|
|
---
|
|
|
|
|
#Test explicit setting of parameters and variables
|
2017-03-16 21:06:17 +00:00
|
|
|
- name: Elasticsearch Config initial
|
2015-10-22 19:09:53 +01:00
|
|
|
hosts: localhost
|
2018-01-31 08:14:24 +01:00
|
|
|
tasks:
|
|
|
|
|
- include: elasticsearch/test/integration/debug.yml
|
2015-10-22 19:09:53 +01:00
|
|
|
roles:
|
|
|
|
|
#expand to all available parameters
|
2017-03-17 00:20:50 +00:00
|
|
|
- { role: elasticsearch, es_instance_name: "node1", es_data_dirs: ["/opt/elasticsearch/data-1","/opt/elasticsearch/data-2"], es_log_dir: "/opt/elasticsearch/logs", es_user_id: 333, es_group_id: 333, 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.memory_lock: false } }
|
2015-10-22 19:09:53 +01:00
|
|
|
vars:
|
2018-06-13 10:03:40 +02:00
|
|
|
es_enable_xpack: false
|
2015-10-22 19:09:53 +01:00
|
|
|
es_scripts: false
|
|
|
|
|
es_templates: false
|
2015-11-26 14:19:25 +00:00
|
|
|
es_version_lock: false
|
2017-01-17 15:19:50 +00:00
|
|
|
es_heap_size: 1g
|
2017-03-16 21:06:17 +00:00
|
|
|
es_api_port: 9201
|
|
|
|
|
es_plugins:
|
2017-03-16 22:23:20 +00:00
|
|
|
- plugin: ingest-geoip
|
2017-03-16 21:06:17 +00:00
|
|
|
|
|
|
|
|
#Modify the above configuration. Final test should evaluate this configuration. Also tests the plugins are added and removed.
|
|
|
|
|
- name: Elasticsearch Config test modify
|
|
|
|
|
hosts: localhost
|
2018-01-31 08:14:24 +01:00
|
|
|
tasks:
|
|
|
|
|
- include: elasticsearch/test/integration/debug.yml
|
2017-03-16 21:06:17 +00:00
|
|
|
roles:
|
|
|
|
|
#expand to all available parameters
|
2017-03-17 00:20:50 +00:00
|
|
|
- { role: elasticsearch, es_instance_name: "node1", es_data_dirs: ["/opt/elasticsearch/data-1","/opt/elasticsearch/data-2"], es_log_dir: "/opt/elasticsearch/logs", es_user_id: 333, es_group_id: 333, es_config: {node.name: "node1", cluster.name: "custom-cluster", discovery.zen.ping.unicast.hosts: "localhost:9501", http.port: 9401, transport.tcp.port: 9501, node.data: true, node.master: true, bootstrap.memory_lock: true } }
|
2017-03-16 21:06:17 +00:00
|
|
|
vars:
|
2018-06-13 10:03:40 +02:00
|
|
|
es_enable_xpack: false
|
2017-03-16 21:06:17 +00:00
|
|
|
es_scripts: false
|
|
|
|
|
es_templates: false
|
|
|
|
|
es_version_lock: false
|
|
|
|
|
es_heap_size: 1g
|
2017-08-17 18:52:02 +01:00
|
|
|
#add a custom log4j file
|
|
|
|
|
es_config_log4j2: "./files/logging/log4j2.properties.custom.j2"
|
2017-03-16 21:06:17 +00:00
|
|
|
es_api_port: 9401
|
2017-08-18 16:32:00 +01:00
|
|
|
es_max_threads: 3000
|
2017-03-16 21:06:17 +00:00
|
|
|
es_plugins:
|
|
|
|
|
- plugin: ingest-attachment
|
2018-01-31 08:14:24 +01:00
|
|
|
- plugin: ingest-user-agent
|