Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file download/fetch module #250

Closed
BrianHicks opened this issue Sep 13, 2016 · 4 comments
Closed

file download/fetch module #250

BrianHicks opened this issue Sep 13, 2016 · 4 comments
Assignees
Labels
Milestone

Comments

@BrianHicks
Copy link
Contributor

A file download module would be nice.

file.fetch "consul.zip" {
  source = "https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zip"
  destination = "/tmp/consul.zip"
  hash sha256 = "abdf0e1856292468e2c9971420d73b805e93888e006c76324ae39416edcf0627"
}
@BrianHicks
Copy link
Contributor Author

I think this stands as specced, with one change: if no destination is specified, the file should be buffered in memory/to a temp file on disk. It can then be referenced from other modules.

@BrianHicks
Copy link
Contributor Author

@Dacode45 could you finish your work on systemd before assigned yourself new tasks, please?

@BrianHicks BrianHicks modified the milestone: 0.3.0 Oct 13, 2016
@BrianHicks BrianHicks added this to the 0.4.0 milestone Oct 20, 2016
@arichardet arichardet modified the milestones: 0.4.0, 0.5.0 Nov 17, 2016
@arichardet arichardet self-assigned this Nov 30, 2016
@arichardet
Copy link
Contributor

#543

@automaticgiant
Copy link

would it make more sense to make a separate resource for generic release download, or extend fetch, to provide something like the goss packer provisioner:

file.fetch goss {
  version = "0.3.2"
  arch = "amd64"
  os = "{{platform.OS}}" # platform.ARCH would be nice
  url = "https://github.com/aelsabbahy/goss/releases/download/vVERSION/goss-OS-ARCH"
  downloadPath = "/tmp/goss-VERSION-OS-ARCH"
  remote_folder = "/tmp"
  remote_path = "/tmp/goss"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants