httpfile

Custom type for downloading files via HTTP and HTTPS

Kim Nørgaard

KimNorgaard

12,552 downloads

9,178 latest version

3.8 quality score

Version information

  • 0.1.9 (latest)
  • 0.1.8
  • 0.1.7
  • 0.1.6
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Jul 20th 2015

Start using this module

Documentation

KimNorgaard/httpfile — version 0.1.9 Jul 20th 2015

KimNorgaard-httpfile

Transfer files via HTTP(S).

Uses various methods to verify the checksum before actually fetching the file.

Basic Usage

    httpfile { '/path/to/file.ext':
      source                    => 'http://example.com/my_file.bin',
    }

By default, the Content-MD5 header is used to compare checksums. For apache, this can be achieved by setting the 'ContentDigest' directive to 'On'.

If you prefer to use sidecar files (i.e. .md5 or .sha1) placed on the server, you can do that by setting the checksum_type parameter.