From: Simon Pasquier Date: Fri, 2 Dec 2016 08:56:08 +0000 (+0100) Subject: Allow to configure master_only for the curator X-Git-Tag: 2016.12~3^2 X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Felasticsearch.git;a=commitdiff_plain;h=0b13814227f691cd0e476d715c836c348a2228be;hp=d10d4cdf54156255f27a4a680b7f756b2addb325 Allow to configure master_only for the curator --- diff --git a/README.rst b/README.rst index 08bd72a..966b6b7 100644 --- a/README.rst +++ b/README.rst @@ -68,6 +68,7 @@ Common definition for curator: timeout: 900 logfile: /var/log/elasticsearch/curator.log logformat: json + master_only: true actions: - action: delete_indices description: >- diff --git a/elasticsearch/files/curator.yml b/elasticsearch/files/curator.yml index 6bb8f1e..4bdec0c 100644 --- a/elasticsearch/files/curator.yml +++ b/elasticsearch/files/curator.yml @@ -17,7 +17,7 @@ client: ssl_no_validate: False http_auth: timeout: {{ server.curator.timeout|default(120) }} - master_only: False + master_only: {{ server.curator.get('master_only', False)|lower }} logging: loglevel: {{ server.curator.loglevel|default("INFO") }}