Consul Backend

This commit is contained in:
emile 2015-09-21 18:05:56 +02:00
parent 32c0ffe87a
commit d8e8815ad1
11 changed files with 354 additions and 43 deletions

View file

@ -5,7 +5,6 @@ import (
"github.com/BurntSushi/toml"
"github.com/BurntSushi/ty/fun"
"github.com/gambol99/go-marathon"
"github.com/leekchan/gtf"
"strconv"
"strings"
"text/template"
@ -148,8 +147,7 @@ func (provider *MarathonProvider) loadMarathonConfig() *Configuration {
provider.Domain,
}
gtf.Inject(MarathonFuncMap)
tmpl := template.New(provider.Filename).Funcs(DockerFuncMap)
tmpl := template.New(provider.Filename).Funcs(MarathonFuncMap)
if len(provider.Filename) > 0 {
_, err := tmpl.ParseFiles(provider.Filename)
if err != nil {