From 772d96b58db0c246eeace990153b7375e9b556c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Kandemir?= Date: Thu, 8 Oct 2015 14:48:34 +0300 Subject: [PATCH] Download correct version --- consul/init.sls | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/consul/init.sls b/consul/init.sls index cb4e139..0e1a72a 100644 --- a/consul/init.sls +++ b/consul/init.sls @@ -6,8 +6,12 @@ unzip: consul_download: archive.extracted: - name: /opt/consul - - source: http://dl.bintray.com/mitchellh/consul/0.5.2_linux_amd64.zip + - source: http://dl.bintray.com/mitchellh/consul/0.5.2_linux_{{ salt['grains.get']('osarch', '386') }}.zip + {% if salt['grains.get']('osarch', '386') == 'amd64' %} - source_hash: sha1=b3ae610c670fc3b81737d44724ebde969da66ebf + {% else %} + - source_hash: sha1=a4eaaa66668682f40ccb40daefcf0732a185d3a4 + {% endif %} - archive_format: zip - require: - pkg: unzip