Skip to content
Draft
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions templates/hoover-deps.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{%- macro elasticsearch_docker_config(data_dir_name) %}
config {
image = "docker.elastic.co/elasticsearch/elasticsearch:6.8.15"
image = "docker.elastic.co/elasticsearch/elasticsearch:7.13.2"
args = ["/bin/sh", "-c", "chown 1000:1000 /usr/share/elasticsearch/data /es_repo && echo chown done && exec /usr/local/bin/docker-entrypoint.sh"]
volumes = [
"{% raw %}${meta.liquid_volumes}{% endraw %}/hoover/es/${data_dir_name}:/usr/share/elasticsearch/data",
Expand Down Expand Up @@ -38,6 +38,7 @@
xpack.monitoring.collection.index.stats.timeout = "30s"
xpack.monitoring.collection.index.recovery.timeout = "30s"
xpack.monitoring.history.duration = "32d"
discovery.seed_hosts = "{% raw %}${attr.unique.network.ip-address}{% endraw %}"
Comment thread
k-jell marked this conversation as resolved.
Outdated

path.repo = "/es_repo"

Expand Down Expand Up @@ -126,7 +127,7 @@ job "hoover-deps" {
}
}
}
}
}

{% if config.elasticsearch_data_node_count %}
group "es-data" {
Expand Down Expand Up @@ -170,7 +171,7 @@ job "hoover-deps" {
}
template {
data = <<-EOF
discovery.zen.ping.unicast.hosts = {{- range service "hoover-es-master-transport" -}}"{{.Address}}:{{.Port}}"{{- end -}}
discovery.seed_hosts = {{- range service "hoover-es-master-transport" -}}"{{.Address}}:{{.Port}}"{{- end -}}
EOF
destination = "local/es-master.env"
env = true
Expand Down