Forge Home

cloud_file

Cloud File Module

12,998 downloads

7,622 latest version

3.1 quality score

Version information

  • 0.1.8 (latest)
  • 0.0.7
  • 0.0.6
  • 0.0.5
  • 0.0.4
  • 0.0.3
  • 0.0.2
  • 0.0.1
released Mar 27th 2016
This version is compatible with:
  • Puppet 3.x

Start using this module

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

Add this module to your Puppetfile:

mod 'jbussdieker-cloud_file', '0.1.8'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jbussdieker-cloud_file
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jbussdieker-cloud_file --version 0.1.8

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
Tags: file, cloud, s3

Documentation

jbussdieker/cloud_file — version 0.1.8 Mar 27th 2016

Cloud File Module

Puppet Forge Build Status

This module manages files hosted on cloud providers. Currently only S3 is supported.

Parameters

  • ensure: present, absent, latest. default: present.
  • path: The local path for the destination file.
  • source: Specify the source url of the cloud file ex (bucket_name/path/to/file).
  • access_key_id: The AWS access key to connect to S3. (optional)
  • secret_access_key: The AWS secret access key to connect to S3. (optional)

Please note: This module requires the aws-sdk gem to be installed prior to use.

Usage

file { '/opt/scripts':
  ensure => directory,
  owner  => root,
  group  => root
}

cloud_file {'/opt/scripts/script.sh':
  ensure            => present,
  source            => 'bucket/path/to/script.sh',
  access_key_id     => 'EXAMPLE_ACCESS_KEY_ID',
  secret_access_key => 'EXAMPLE_SECRET_ACCESS_KEY',
}

# If you omit the access_key_id and secret_access_key, the S3 client will
# attempt to authenticate automatically by one of the methods described
# here: http://docs.aws.amazon.com/AWSSdkDocsRuby/latest/DeveloperGuide/prog-basics-creds.html