rancher / catalog-dockerfiles

Dockerfiles for Rancher Catalog containers
Apache License 2.0
131 stars 102 forks source link

Elasticsearch confd template parsing failing #57

Open cqcwillard opened 8 years ago

cqcwillard commented 8 years ago

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.