Set PATH for elasticsearch cron
diff --git a/elasticsearch/server/curator.sls b/elasticsearch/server/curator.sls
index 0dfe9d0..7824772 100644
--- a/elasticsearch/server/curator.sls
+++ b/elasticsearch/server/curator.sls
@@ -31,6 +31,14 @@
- minute: random
- hour: 1
+elasticsearch_curator_cron_path:
+ cron.env_present:
+ - name: PATH
+ - user: elasticsearch
+ - value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ - require_in:
+ - cron: elasticsearch_curator_cron
+
{%- if server.curator.logfile|default("") %}
elasticsearch_curator_log:
file.managed: