Skip to content

Instantly share code, notes, and snippets.

@darron
Created May 26, 2015 19:14
Show Gist options
  • Save darron/bf56fceab5c9968eddf5 to your computer and use it in GitHub Desktop.
Save darron/bf56fceab5c9968eddf5 to your computer and use it in GitHub Desktop.
root@doctohost01:~# consul-template -config config.cfg -log-level debug
2015/05/26 15:11:28 [DEBUG] (config) loading configs from "config.cfg"
2015/05/26 15:11:28 [DEBUG] (logging) setting up logging
2015/05/26 15:11:28 [DEBUG] (logging) config:
{
"name": "consul-template",
"level": "debug",
"syslog": true,
"syslog_facility": "LOCAL5"
}
2015/05/26 15:11:28 [DEBUG] (logging) enabling syslog on LOCAL5
2015/05/26 15:11:28 [INFO] Consul Template v0.9.0.dev
2015/05/26 15:11:28 [INFO] (runner) creating new runner (dry: false, once: false)
2015/05/26 15:11:28 [DEBUG] (runner) final config (tokens suppressed):
{
"path": "config.cfg",
"consul": "127.0.0.1:8500",
"auth": {
"enabled": false,
"username": "",
"password": ""
},
"vault": {
"ssl": {
"enabled": true,
"verify": true
}
},
"ssl": {
"enabled": false,
"verify": true
},
"syslog": {
"enabled": true,
"facility": "LOCAL5"
},
"max_stale": 600000000000,
"templates": [
{
"source": "/home/darron/template.ctmpl",
"destination": "/home/darron/rendered.txt",
"command": "logger -t consul consultemplate: I ran again"
}
],
"retry": 10000000000,
"wait": {
"min": 30000000000,
"max": 120000000000
},
"pid_file": "",
"log_level": "debug"
}
2015/05/26 15:11:28 [INFO] (runner) creating consul/api client
2015/05/26 15:11:28 [DEBUG] (runner) setting consul address to 127.0.0.1:8500
2015/05/26 15:11:28 [INFO] (runner) creating vault/api client
2015/05/26 15:11:28 [DEBUG] (runner) enabling vault SSL
2015/05/26 15:11:28 [INFO] (runner) creating Watcher
2015/05/26 15:11:28 [INFO] (runner) starting
2015/05/26 15:11:28 [DEBUG] (runner) running initial templates
2015/05/26 15:11:28 [INFO] (runner) running
2015/05/26 15:11:28 [DEBUG] (runner) checking template /home/darron/template.ctmpl
2015/05/26 15:11:28 [INFO] (runner) was not watching 1 dependencies
2015/05/26 15:11:28 [INFO] (watcher) adding "storeKeyPrefix(octohost)"
2015/05/26 15:11:28 [DEBUG] (watcher) "storeKeyPrefix(octohost)" starting
2015/05/26 15:11:28 [INFO] (runner) diffing and updating dependencies
2015/05/26 15:11:28 [DEBUG] (runner) enabling quiescence for "/home/darron/template.ctmpl"
2015/05/26 15:11:28 [INFO] (runner) watching 1 dependencies
2015/05/26 15:11:28 [DEBUG] (view) "storeKeyPrefix(octohost)" starting fetch
2015/05/26 15:11:28 [DEBUG] ("storeKeyPrefix(octohost)") querying Consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:0 WaitTime:1m0s Token:}
2015/05/26 15:11:28 [DEBUG] ("storeKeyPrefix(octohost)") Consul returned 33 key pairs
2015/05/26 15:11:28 [INFO] (view) "storeKeyPrefix(octohost)" received data from consul
2015/05/26 15:11:28 [DEBUG] (runner) receiving dependency "storeKeyPrefix(octohost)"
2015/05/26 15:11:28 [INFO] (runner) running
2015/05/26 15:11:28 [DEBUG] (runner) checking template /home/darron/template.ctmpl
2015/05/26 15:11:28 [DEBUG] (view) "storeKeyPrefix(octohost)" starting fetch
2015/05/26 15:11:28 [DEBUG] ("storeKeyPrefix(octohost)") querying Consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:24936 WaitTime:1m0s Token:}
2015/05/26 15:11:28 [INFO] (runner) diffing and updating dependencies
2015/05/26 15:11:28 [DEBUG] (runner) "storeKeyPrefix(octohost)" is still needed
2015/05/26 15:11:28 [INFO] (runner) watching 1 dependencies
2015/05/26 15:11:58 [INFO] (runner) quiescence minTimer fired for /home/darron/template.ctmpl
2015/05/26 15:11:58 [INFO] (runner) received template "/home/darron/template.ctmpl" from quiescence
2015/05/26 15:11:58 [INFO] (runner) running
2015/05/26 15:11:58 [DEBUG] (runner) checking template /home/darron/template.ctmpl
2015/05/26 15:11:58 [DEBUG] (runner) checking ctemplate &{Source:/home/darron/template.ctmpl Destination:/home/darron/rendered.txt Command:logger -t consul consultemplate: I ran again}
2015/05/26 15:11:58 [DEBUG] (runner) wouldRender: true, didRender: true
2015/05/26 15:11:58 [DEBUG] (runner) appending command: logger -t consul consultemplate: I ran again
2015/05/26 15:11:58 [INFO] (runner) diffing and updating dependencies
2015/05/26 15:11:58 [DEBUG] (runner) "storeKeyPrefix(octohost)" is still needed
2015/05/26 15:11:58 [DEBUG] (runner) running command: `logger -t consul consultemplate: I ran again`
2015/05/26 15:11:58 [DEBUG] (runner) enabling quiescence for "/home/darron/template.ctmpl"
2015/05/26 15:11:58 [INFO] (runner) watching 1 dependencies
2015/05/26 15:12:28 [DEBUG] ("storeKeyPrefix(octohost)") Consul returned 33 key pairs
2015/05/26 15:12:28 [DEBUG] (view) "storeKeyPrefix(octohost)" no new data (index was the same)
2015/05/26 15:12:28 [DEBUG] ("storeKeyPrefix(octohost)") querying Consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:24936 WaitTime:1m0s Token:}
2015/05/26 15:12:34 [DEBUG] ("storeKeyPrefix(octohost)") Consul returned 32 key pairs
2015/05/26 15:12:34 [INFO] (view) "storeKeyPrefix(octohost)" received data from consul
2015/05/26 15:12:34 [DEBUG] (runner) receiving dependency "storeKeyPrefix(octohost)"
2015/05/26 15:12:34 [INFO] (runner) running
2015/05/26 15:12:34 [DEBUG] (runner) checking template /home/darron/template.ctmpl
2015/05/26 15:12:34 [DEBUG] (view) "storeKeyPrefix(octohost)" starting fetch
2015/05/26 15:12:34 [DEBUG] ("storeKeyPrefix(octohost)") querying Consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:24942 WaitTime:1m0s Token:}
2015/05/26 15:12:34 [INFO] (runner) diffing and updating dependencies
2015/05/26 15:12:34 [DEBUG] (runner) "storeKeyPrefix(octohost)" is still needed
2015/05/26 15:12:34 [INFO] (runner) watching 1 dependencies
2015/05/26 15:12:37 [DEBUG] ("storeKeyPrefix(octohost)") Consul returned 31 key pairs
2015/05/26 15:12:37 [INFO] (view) "storeKeyPrefix(octohost)" received data from consul
2015/05/26 15:12:37 [DEBUG] (runner) receiving dependency "storeKeyPrefix(octohost)"
2015/05/26 15:12:37 [INFO] (runner) running
2015/05/26 15:12:37 [DEBUG] (runner) checking template /home/darron/template.ctmpl
2015/05/26 15:12:37 [DEBUG] (view) "storeKeyPrefix(octohost)" starting fetch
2015/05/26 15:12:37 [DEBUG] ("storeKeyPrefix(octohost)") querying Consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:24943 WaitTime:1m0s Token:}
2015/05/26 15:12:37 [INFO] (runner) diffing and updating dependencies
2015/05/26 15:12:37 [DEBUG] (runner) "storeKeyPrefix(octohost)" is still needed
2015/05/26 15:12:37 [INFO] (runner) watching 1 dependencies
2015/05/26 15:12:40 [DEBUG] ("storeKeyPrefix(octohost)") Consul returned 30 key pairs
2015/05/26 15:12:40 [INFO] (view) "storeKeyPrefix(octohost)" received data from consul
2015/05/26 15:12:40 [DEBUG] (runner) receiving dependency "storeKeyPrefix(octohost)"
2015/05/26 15:12:40 [INFO] (runner) running
2015/05/26 15:12:40 [DEBUG] (runner) checking template /home/darron/template.ctmpl
2015/05/26 15:12:40 [DEBUG] (view) "storeKeyPrefix(octohost)" starting fetch
2015/05/26 15:12:40 [DEBUG] ("storeKeyPrefix(octohost)") querying Consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:24944 WaitTime:1m0s Token:}
2015/05/26 15:12:40 [INFO] (runner) diffing and updating dependencies
2015/05/26 15:12:40 [DEBUG] (runner) "storeKeyPrefix(octohost)" is still needed
2015/05/26 15:12:40 [INFO] (runner) watching 1 dependencies
2015/05/26 15:12:53 [DEBUG] ("storeKeyPrefix(octohost)") Consul returned 31 key pairs
2015/05/26 15:12:53 [INFO] (view) "storeKeyPrefix(octohost)" received data from consul
2015/05/26 15:12:53 [DEBUG] (runner) receiving dependency "storeKeyPrefix(octohost)"
2015/05/26 15:12:53 [INFO] (runner) running
2015/05/26 15:12:53 [DEBUG] (runner) checking template /home/darron/template.ctmpl
2015/05/26 15:12:53 [DEBUG] (view) "storeKeyPrefix(octohost)" starting fetch
2015/05/26 15:12:53 [DEBUG] ("storeKeyPrefix(octohost)") querying Consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:24945 WaitTime:1m0s Token:}
2015/05/26 15:12:53 [INFO] (runner) diffing and updating dependencies
2015/05/26 15:12:53 [DEBUG] (runner) "storeKeyPrefix(octohost)" is still needed
2015/05/26 15:12:53 [INFO] (runner) watching 1 dependencies
2015/05/26 15:12:56 [DEBUG] ("storeKeyPrefix(octohost)") Consul returned 32 key pairs
2015/05/26 15:12:56 [INFO] (view) "storeKeyPrefix(octohost)" received data from consul
2015/05/26 15:12:56 [DEBUG] (runner) receiving dependency "storeKeyPrefix(octohost)"
2015/05/26 15:12:56 [INFO] (runner) running
2015/05/26 15:12:56 [DEBUG] (runner) checking template /home/darron/template.ctmpl
2015/05/26 15:12:56 [DEBUG] (view) "storeKeyPrefix(octohost)" starting fetch
2015/05/26 15:12:56 [DEBUG] ("storeKeyPrefix(octohost)") querying Consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:24946 WaitTime:1m0s Token:}
2015/05/26 15:12:56 [INFO] (runner) diffing and updating dependencies
2015/05/26 15:12:56 [DEBUG] (runner) "storeKeyPrefix(octohost)" is still needed
2015/05/26 15:12:56 [INFO] (runner) watching 1 dependencies
2015/05/26 15:13:04 [DEBUG] ("storeKeyPrefix(octohost)") Consul returned 33 key pairs
2015/05/26 15:13:04 [INFO] (view) "storeKeyPrefix(octohost)" received data from consul
2015/05/26 15:13:04 [DEBUG] (runner) receiving dependency "storeKeyPrefix(octohost)"
2015/05/26 15:13:04 [INFO] (runner) running
2015/05/26 15:13:04 [DEBUG] (runner) checking template /home/darron/template.ctmpl
2015/05/26 15:13:04 [DEBUG] (view) "storeKeyPrefix(octohost)" starting fetch
2015/05/26 15:13:04 [DEBUG] ("storeKeyPrefix(octohost)") querying Consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:24947 WaitTime:1m0s Token:}
2015/05/26 15:13:04 [INFO] (runner) diffing and updating dependencies
2015/05/26 15:13:04 [DEBUG] (runner) "storeKeyPrefix(octohost)" is still needed
2015/05/26 15:13:04 [INFO] (runner) watching 1 dependencies
2015/05/26 15:13:34 [INFO] (runner) quiescence minTimer fired for /home/darron/template.ctmpl
2015/05/26 15:13:34 [INFO] (runner) received template "/home/darron/template.ctmpl" from quiescence
2015/05/26 15:13:34 [INFO] (runner) running
2015/05/26 15:13:34 [DEBUG] (runner) checking template /home/darron/template.ctmpl
2015/05/26 15:13:34 [DEBUG] (runner) checking ctemplate &{Source:/home/darron/template.ctmpl Destination:/home/darron/rendered.txt Command:logger -t consul consultemplate: I ran again}
2015/05/26 15:13:34 [DEBUG] (runner) wouldRender: true, didRender: true
2015/05/26 15:13:34 [DEBUG] (runner) appending command: logger -t consul consultemplate: I ran again
2015/05/26 15:13:34 [INFO] (runner) diffing and updating dependencies
2015/05/26 15:13:34 [DEBUG] (runner) "storeKeyPrefix(octohost)" is still needed
2015/05/26 15:13:34 [DEBUG] (runner) running command: `logger -t consul consultemplate: I ran again`
2015/05/26 15:13:34 [DEBUG] (runner) enabling quiescence for "/home/darron/template.ctmpl"
2015/05/26 15:13:34 [INFO] (runner) watching 1 dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment