Skip to content
New issue

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

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

Already on GitHub? # to your account

(RFC - not ready for merge) use camptocamp/archive for all downloads #340

Conversation

jhoblitt
Copy link
Member

Replaces direct usage of wget from exec and nanliu/staging. Intended to be an
interim solution until nanliu/archive gains proxy support.

@jhoblitt
Copy link
Member Author

This PR is in response to discussion in PR #336 about converging on a single method of downloading files. I've considered a few different modules and the tl;dr is that I'm proposing to exclusively use camptocamp/archive until nanliu/archive gains proxy support.

I try to use supported/approved modules when possible on the theory that they are less likely to cause an environment conflict. AFAIK, there are two blessed, popular, and API stable download modules for posix like systems. nanliu/staging & maestrodev/wget. The former does not have proxy or checksum support. The later has both but proxy support is only via facts/top level variables. Neither appear to be an ideal fit.

I suspect that nanliu/archive, being a native type implementation, is "the future" for downloading files. However, it currently lacks proxy support and presently requires a fair number of gems to be installed on the agent . camptocamp/archive has all of the features this module desires but I dislike that the destination filename is implicit based on the resource name, that it creates a file resource for the downloaded file only upon ensure => absent, and that the module name conflicts with nanliu/archive.

Replaces direct usage of wget from exec and nanliu/staging.  Intended to be an
interim solution until nanliu/archive gains proxy support.
@jhoblitt jhoblitt force-pushed the feature/consolidate-download-methods branch from e9bb62a to 21f2ae6 Compare July 14, 2015 20:22
@jenkinsadmin
Copy link

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@rtyler
Copy link

rtyler commented Aug 8, 2015

@jhoblitt in general I really like this change, the failing tests concern me though. I might take a whack at fixing it later today if I don't run out of steam first

@jhoblitt
Copy link
Member Author

jhoblitt commented Aug 8, 2015

@rtyler Ping me if you don't get to it and I'll try to take a stab and fixing up the tests tomorrow.

@rtyler
Copy link

rtyler commented Aug 9, 2015

@jhoblitt I definitely didn't get to this :P

@jhoblitt jhoblitt added needs-tests enhancement New feature or request labels Oct 10, 2015
@jhoblitt jhoblitt self-assigned this Oct 10, 2015
@jhoblitt jhoblitt added this to the 1.7.0-Oddjob milestone Oct 11, 2015
@jhoblitt
Copy link
Member Author

I think the rough consensus is to switch to puppet-community/puppet-archive, so I'm going to retract this PR.

@jhoblitt jhoblitt closed this Jan 19, 2016
@jhoblitt jhoblitt deleted the feature/consolidate-download-methods branch April 15, 2016 20:35
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request needs-tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants