From e1d58e54fe25875191d2de69ceaf3be3ef77c1f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Bj=C3=B6rklin?= Date: Wed, 13 Mar 2019 22:16:14 -0700 Subject: [PATCH 1/2] fix incompatible yaml renderer change in 2019.2.0 see: https://docs.saltstack.com/en/develop/topics/releases/2019.2.0.html#non-backward-compatible-change-to-yaml-renderer --- consul/config.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consul/config.sls b/consul/config.sls index 44c39c91..a32db31d 100644 --- a/consul/config.sls +++ b/consul/config.sls @@ -4,7 +4,7 @@ consul-config: file.serialize: - name: /etc/consul.d/config.json - formatter: json - - dataset: {{ consul.config }} + - dataset_pillar: consul:config - user: {{ consul.user }} - group: {{ consul.group }} - mode: 0640 @@ -40,4 +40,4 @@ consul-script-config: - user: consul-user - formatter: json - dataset: - services: {{ consul.register }} + services: {{ consul.register | tojson }} From 6b9d83d44867e069276107b699850d816847f643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Bj=C3=B6rklin?= Date: Fri, 15 Mar 2019 19:47:44 -0700 Subject: [PATCH 2/2] fix review comment on tojson -> json --- consul/config.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/config.sls b/consul/config.sls index a32db31d..394675f2 100644 --- a/consul/config.sls +++ b/consul/config.sls @@ -40,4 +40,4 @@ consul-script-config: - user: consul-user - formatter: json - dataset: - services: {{ consul.register | tojson }} + services: {{ consul.register | json }}