Forge Home

cloudfile

Download files from cloud providers and install the package, can be declared for a singe package or use the define

981 downloads

631 latest version

5.0 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

  • 0.2.0 (latest)
  • 0.1.0
released Mar 28th 2022
This version is compatible with:
  • Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x
  • Puppet >= 6.21.0 < 8.0.0
  • , , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'chrislorro-cloudfile', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add chrislorro-cloudfile
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install chrislorro-cloudfile --version 0.2.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

chrislorro/cloudfile — version 0.2.0 Mar 28th 2022

cloudfile

Welcome to your new module. A short overview of the generated parts can be found in the PDK documentation at https://puppet.com/pdk/latest/pdk_generating_modules.html .

Table of Contents

Description

Download archived packages from various locations and optionally install locally

Setup

This module is dependant on the archive module and also almost does the same, it has additional functionality for AWS CLI on windows platforms, and optional will use a package resource with optional install parameters

What cloudfile affects

If using this module with AWS S3 bucket infrastructure the AWSCLI is automatically downloaded and install, for AZ filestore a token can be passed.

Setup Requirements OPTIONAL

Include puppet/archive and any dependencies

Beginning with cloudfile

The Linux system must have python configured for the AWSCLI installer to work, and the .bash_profile will need the /usr/local/bin set in $PATH.

Usage

Examples

retrieve an application call invader from s3 storage to linux
class cloudfile {
  app_name       => 'invader',
  package_name   => 'invader.tar.gz',
  package_uri    => 's3://chrislorro',
  extract        => true,
  cloud_download => standard,
  aws_region     => eu-west-2,
}
retrieve an application call invader from s3 storage and install the application
class cloudfile {
  app_name        => 'mcafee',
  package_name    => 'McAfee.zip',
  package_uri     => 'https://chrislorro.blob.core.windows.net/puppet,
  extract         => true,
  cloud_download  => 'secure',
  token           => 'sp=rwd&st=2022-01-27T11:46[]sig=2ytxxRcpND1Khs4UgUL1tfMxOwHsZMMit'
  package_name    => McAfee.exe,
  install_options => [ '/SILENT', '/INSTALL=AGENT']
}

Limitations

This is a beta version and is under development its been tested for downloading from AWS and Azure on Redhat, Centos, Windows 2016/2019.

This package install is in the early stages and will be improved during the next release

The AWSCLI requires to puppet agent runs on windows because the %PATH% is not set during the first execution

Development

If you run into an issue with this module, or if you would like to request a feature, you can fork the repo and submit a PR, raise a bug or new feature request.

Release Notes/Contributors/Etc. Optional

Coming soon

cloudfile