From 96b49f4e9921f8468f2ff20a85ebcbc8b5d8a50e Mon Sep 17 00:00:00 2001
From: Steven Armstrong <steven@icarus.ethz.ch>
Date: Wed, 22 Jun 2016 23:56:27 +0200
Subject: [PATCH] consul-template is no longer distributed as a tar. it is now
 a zip archive

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
---
 cdist/conf/type/__consul_template/manifest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cdist/conf/type/__consul_template/manifest b/cdist/conf/type/__consul_template/manifest
index cedcb413..83d2aae4 100755
--- a/cdist/conf/type/__consul_template/manifest
+++ b/cdist/conf/type/__consul_template/manifest
@@ -52,7 +52,7 @@ __staged_file /usr/local/bin/consul-template \
    --source "$(cat "$version_dir/source")" \
    --cksum "$(cat "$version_dir/cksum")" \
    --fetch-command 'curl -s -L "%s"' \
-   --prepare-command 'tar -xzf "%s"; cat consul-template_*/consul-template' \
+   --prepare-command 'unzip -p "%s"' \
    --state "$state" \
    --group root \
    --owner root \