State module to manage Elasticsearch indices
New in version 2015.8.0.
Deprecated since version 2017.7.0: Use elasticsearch state instead
salt.states.elasticsearch_index.
absent
(name)¶Ensure that the named index is absent.
Name of the index to remove
salt.states.elasticsearch_index.
present
(name, definition=None)¶New in version 2015.8.0.
Changed in version 2017.3.0: Marked definition
as optional.
Ensure that the named index is present.
Name of the index to add
Optional dict for creation parameters as per https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html
Example:
# Default settings
mytestindex:
elasticsearch_index.present
# Extra settings
mytestindex2:
elasticsearch_index.present:
- definition:
settings:
index:
number_of_shards: 10
Generated on June 18, 2020 at 04:09:58 UTC.
You are viewing docs for the latest stable release, 3001. Switch to docs for the previous stable release, 3000.3, or to a recent doc build from the master branch.
© 2020 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy