Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Elasticsearch confd template parsing failing #57

Open
cqcwillard opened this issue Apr 4, 2016 · 0 comments
Open

Elasticsearch confd template parsing failing #57

cqcwillard opened this issue Apr 4, 2016 · 0 comments

Comments

@cqcwillard
Copy link

So, I'm having trouble trying to get zen discovery working with the confd configuration provided by the elasticsearch-conf package. There seems to be two problems:

  1. The {{range ls "/self/service/metadata/elasticsearch/yml"}} command produces a value called "self" which causes the {{getv (printf "/self/service/metadata/elasticsearch/yml/%s" .)}} call to fail since that key does not exist in the rancher meta data.
  2. The other issue is this call, {{ $containerName := getv (printf "/self/service/containers/%s" .)}} fails. This is odd considering that if I make a curl request to curl http://rancher-metadata/latest/self/service/containers I do in fact see the container that the template is trying to use.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant