voxpupuli / puppet-archive

Compressed archive file download and extraction with native types/providers for Windows and Unix
https://forge.puppet.com/puppet/archive
Apache License 2.0
59 stars 176 forks source link

Enhancement: allow multiple sources #479

Open pillarsdotnet opened 1 year ago

pillarsdotnet commented 1 year ago

I've forked and locally modified the archive module to accept an array for the source attribute, and fetch each URL in turn until success or the last one is tried, whichever comes first.

This is intended to behave similarly to Puppet's built-in file resource.

I haven't figured out how to allow multiple checksum or remote_checksum attributes in coordination with multiple source attributes. Suggestions welcome.

As soon as I get around to implementing tests, I'll submit a PR.