Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (19 sloc) 503 Bytes
# unarchive
param "zip" {
default = "/tmp/consul.zip"
}
param "destination" {
default = "/tmp/consul"
}
file.directory "consul" {
destination = "{{param `destination`}}"
}
file.fetch "consul.zip" {
source = "https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zip"
destination = "{{param `zip`}}"
}
unarchive "consul.zip" {
source = "{{param `zip`}}"
destination = "{{param `destination`}}"
depends = ["file.directory.consul", "file.fetch.consul.zip"]
}