Forge Home

fetchtool

Fetch tool to download packages

6,822 downloads

6,822 latest version

4.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.0 (latest)
released Sep 6th 2017
This version is compatible with:
  • , , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'coi-fetchtool', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add coi-fetchtool
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install coi-fetchtool --version 1.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

coi/fetchtool — version 1.0.0 Sep 6th 2017

COI-fetchtool Puppet module

Allow to fetch files, in chosen by user way. By default it will utulize WGET to download files. To change the way of downloading an artifact, one should change setting - fetchtool::settings::fetch_tool, to use some other definition.

Simple example usage of fetchtool module

# Will download file to /usr/src/eicar.com
fetchtool::download { 'http://www.eicar.org/download/eicar.com': }

More complex example of fetchtool module

$baseuri = 'https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/4.2.0'
$filename = 'flyway-commandline-4.2.0-linux-x64.tar.gz'

fetchtool::download { 'alias-for-flyway-4.2.0.tgz':
  address    => "${baseuri}/${filename}",
  mode       => '0660',
  owner      => 'flyway',
  group      => 'flyway',
  fetch_dir  => '/tmp',
  filename   => 'flyway-4.2.0.tgz',
  attributes => {
    # Additional attibutes to specific implementation - in this case WGET
    'timeout'      => 1200,
    'install_wget' => true,
  }
}