Skip to content

Instantly share code, notes, and snippets.

@emcniece
Created February 25, 2017 18:04
Show Gist options
  • Save emcniece/f780592bf2333402273c589cab974cae to your computer and use it in GitHub Desktop.
Save emcniece/f780592bf2333402273c589cab974cae to your computer and use it in GitHub Desktop.
Go-Rancher-Gen Template Tests
#https://github.com/CausticLab/go-rancher-gen
metadata-version = "2015-12-19"
log-level = "debug"
interval = 30
onetime = false
[[template]]
source = "/etc/rancher-gen/nginx.tmpl"
dest = "/etc/rancher-gen/nginx.conf"
check-cmd = "echo $(date)\t check >> /etc/rancher-gen/check.log"
notify-cmd = "echo $(date)\t notify N:{{Name}} A:{{Address}} >> /etc/rancher-gen/notify.log"
notify-lbl = "testlabel"
notify-output = true
Hosts:
--
{{range hosts}}
host {{.Name}} {{.Address}}
{{end}}
Services:
--
{{range services}}
[{{.Stack}}] Name: {{.Name}}
{{range .Containers}}{{.Name}} {{.Address}}{{end}}
{{end}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment