Forge Home

fetchfile

This class downloads and decompresses files as well as managing their permissions.

10,775 downloads

10,775 latest version

1.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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 1.0.0 (latest)
released Jan 8th 2013

Start using this module

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

Add this module to your Puppetfile:

mod 'runthebusiness-fetchfile', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add runthebusiness-fetchfile
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install runthebusiness-fetchfile --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

runthebusiness/fetchfile — version 1.0.0 Jan 8th 2013

fetchfile

This class downloads and decompresses files as well as managing their permissions.

This is a very simple module that downloads files (if they are not already present at the destination) and then moves or decompresses those files and sets the resulting files/directories ownerships and permissions.

We created this module because we found our selves using the same pattern of multiple exec executions over and over again in our manifests and decided it would be better to build a resource type to handle these common sorts of operations.

Examples:

fetchfile{"fetchafile":
    downloadurl=><url to download a file from>,
    downloadfile=><name of the file the download will create>,
    downloadto=><where to download the file too>,
    desintationpath=><where to put the decompressed or moved version of the file after it's been downloaded>,
    destinationfile=><name of the file or directory that the decompressed file creates>,
    owner=><owner of destination file>,
    group=><group of destination file>,
    mode=><permissions of destination file>
}

This module has been tested in debian squeeze with tar.gz files, if you use it in another flavor or other compression formats and it works fine as is or if you have improvements/issues/fixes please let us know.

Authors

Will Ferrer, Ethan Brooks

Licensees

2012 developed under license for Switchsoft LLC http://www.switchsoft.com a "Direct response telephony company" as part of it's "VOIP Call distribution, ROI analysis platform, call recording, and IVR for inbound and outbound sales" and Run the Business Systems LLC a "Technology development investment group" as part of it's "PHP, Javascript rapid application development framework and MySQL analysis tools"

License

Licensed under the terms of the Open Source LGPL 3.0 license.

Contact

will.ferrer@runthebusiness.net

Support

Please send tickets and issues to our contact email address or at: https://github.com/runthebusiness/puppet-fetchfile/issues

Project Url

https://github.com/runthebusiness/puppet-fetchfile