Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

consul watch puppet

$
0
0
Hello, I'm trying to setup a consul watch for a particular key and whenever it changes, i would like to invoke a puppet agent run. Are there any examples available for this? Can you please provide some guidelines as to how to go about it. I tried setting up the watches for key and it doesn't seem to run the puppet agent when the key changes. May be i am doing something wrong here: { "watches": [ { "type": "keyprefix", "key": "pathtoconsul/web", "handler": "/etc/consul.d/my-key-handler.sh" } ] } contents of /etc/consul.d/my-key-handler.sh: sudo puppet agent -t

Viewing all articles
Browse latest Browse all 6104

Trending Articles