State module to manage Elasticsearch.
New in version 2017.7.0.
Ensure that the index alias is absent.
Ensure that the named index alias is present.
Example:
mytestalias:
elasticsearch.alias_present:
- index: testindex
- definition:
filter:
term:
user: kimchy Ensure that the named index is absent.
Ensure that the named index is present.
Example:
# Default settings
mytestindex:
elasticsearch_index.present
# Extra settings
mytestindex2:
elasticsearch_index.present:
- definition:
settings:
index:
number_of_shards: 10 Ensure that the named index template is absent.
Ensure that the named index template is present.
Example:
mytestindex2_template:
elasticsearch.index_template_present:
- definition:
template: logstash-*
order: 1
settings:
number_of_shards: 1 Ensure that the named pipeline is absent
Ensure that the named pipeline is present.
Example:
test_pipeline:
elasticsearch.pipeline_present:
- definition:
description: example pipeline
processors:
- set:
field: collector_timestamp_millis
value: '{{ '{{' }}_ingest.timestamp{{ '}}' }}' Ensure that the search template is absent
Ensure that the named search template is present.
Example:
test_pipeline:
elasticsearch.search_template_present:
- definition:
inline:
size: 10
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.elasticsearch.html