Permalink
Browse files

Adding a standard watch template.

  • Loading branch information...
darron committed Dec 27, 2014
1 parent 266db70 commit a8970569764acf523ea5a98f4bbee198c89c4078
Showing with 16 additions and 0 deletions.
  1. +9 −0 files/default/template.watch
  2. +7 −0 recipes/consul_template.rb
@@ -0,0 +1,9 @@
+{
+ "watches": [
+ {
+ "type": "service",
+ "service": "REPLACEME",
+ "handler": "sudo consul-template -config /etc/nginx/templates/REPLACEME.cfg -once"
+ }
+ ]
+}
@@ -68,3 +68,10 @@
mode 00755
action :create
end
+
+cookbook_file '/etc/nginx/template.watch' do
+ owner 'root'
+ group 'root'
+ mode 00755
+ action :create
+end

0 comments on commit a897056

Please sign in to comment.