Created
February 25, 2017 18:04
-
-
Save emcniece/f780592bf2333402273c589cab974cae to your computer and use it in GitHub Desktop.
Go-Rancher-Gen Template Tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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