From 9256fc3509bf28e3b2791f1973438aeb7e0120ef Mon Sep 17 00:00:00 2001 From: Ivan Lopez Date: Thu, 10 Nov 2016 18:35:09 +0100 Subject: [PATCH] remove unneeded runtime dir; create data dir using pillar value --- consul/install.sls | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/consul/install.sls b/consul/install.sls index ac9a389..11663ed 100644 --- a/consul/install.sls +++ b/consul/install.sls @@ -13,7 +13,7 @@ consul-bin-dir: consul-user: group.present: - name: consul - user.present: + user.present: - name: consul - createhome: false - system: true @@ -29,18 +29,12 @@ consul-config-dir: - user: consul - group: consul -consul-runtime-dir: - file.directory: - - name: /var/consul - - user: consul - - group: consul - consul-data-dir: file.directory: - - name: /usr/local/share/consul + - name: {{ consul.config.data_dir }} - user: consul - group: consul - - makedirs: + - makedirs: True # Install agent consul-download: