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

Run the Business



9,725 latest version

1.6 quality score

Version information

  • 1.0.0 (latest)
released Jan 8th 2013

Start using this module


runthebusiness/fetchfile — version 1.0.0 Jan 8th 2013


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.


    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.


Will Ferrer, Ethan Brooks


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"


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




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

Project Url