From a5565315348526d3cf9c98bd678cdd23350de5c4 Mon Sep 17 00:00:00 2001 From: hamza3202 Date: Thu, 31 May 2018 11:34:12 +0500 Subject: [PATCH] Update curator version and elastic search URL --- curator/curator.service | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/curator/curator.service b/curator/curator.service index 4228dde..0f461c5 100644 --- a/curator/curator.service +++ b/curator/curator.service @@ -5,20 +5,20 @@ Requires=docker.service consul-agent.service elasticsearch.service [Service] ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment IPV4=$(curl http://169.254.169.254/latest/meta-data/local-ipv4)" -ExecStartPre=/usr/bin/docker pull stakater/elasticsearch-curator:3.5.1 +ExecStartPre=/usr/bin/docker pull stakater/elasticsearch-curator:5.5.4 ExecStartPre=-/usr/bin/docker rm %n ExecStart=/usr/bin/sh -c "/usr/bin/docker run --rm --name %n \ --dns=${IPV4} \ --dns-search=service.consul \ - -e ELASTICSEARCH_HOST=elasticsearch \ + -e ELASTICSEARCH_HOST=elasticsearch-9200 \ -e ELASTICSEARCH_PORT=9200 \ -e OLDER_THAN=6 \ -e TIME_UNIT=months \ -e DO_SNAPSHOT='' \ - stakater/elasticsearch-curator:3.5.1" + stakater/elasticsearch-curator:5.5.4" ExecStop=/usr/bin/docker stop %n RestartSec=10 Restart=always [X-Fleet] -Global=true \ No newline at end of file +Global=true