Merge pull request #17 from cmclaughlin/dl-url

Download URL configurable via pillar
This commit is contained in:
Wolodja Wentland 2017-03-01 14:06:39 +00:00 committed by GitHub
commit e8270ff1b8
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
consul:
version: 0.7.0
hash: b350591af10d7d23514ebaa0565638539900cdb3aaa048f077217c4c46653dd8
download_host: releases.hashicorp.com
service: false
config:

View file

@ -46,7 +46,7 @@ consul-data-dir:
consul-download:
file.managed:
- name: /tmp/consul_{{ consul.version }}_linux_amd64.zip
- source: https://releases.hashicorp.com/consul/{{ consul.version }}/consul_{{ consul.version }}_linux_amd64.zip
- source: https://{{ consul.download_host }}/consul/{{ consul.version }}/consul_{{ consul.version }}_linux_amd64.zip
- source_hash: sha256={{ consul.hash }}
- unless: test -f /usr/local/bin/consul-{{ consul.version }}