From 90962ca028f791f05850ddb576f73bc4ffe22019 Mon Sep 17 00:00:00 2001 From: George Robinson Date: Fri, 22 Apr 2016 22:33:38 +0100 Subject: [PATCH] consul template to pillar.example --- pillar.example | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pillar.example b/pillar.example index 4fb85ef..46cf4eb 100644 --- a/pillar.example +++ b/pillar.example @@ -25,3 +25,17 @@ consul: scripts: - source: salt://files/consul/check_redis.py name: /usr/local/share/consul/check_redis.py + +consul_template: + service: true + config: + consul: 127.0.0.1:8500 + log_level: info + tmpl: + - name: example.com + source: salt://files/example.com.ctmpl + config: + template: + source: /etc/consul-template/tmpl-source/example.com.ctmpl + destination: /etc/nginx/sites-enabled/example.com + command: systemctl restart nginx