cloud_file

Cloud File Module
Joshua Bussdieker

Joshua Bussdieker

jbussdieker

12,020 downloads

6,761 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 Jul 3rd 2019
This version is compatible with:
  • Puppet 3.x
  • Ubuntu

Start using this module

Tags: cloud, s3, file

Documentation

jbussdieker/cloud_file — version 0.1.8 Jul 3rd 2019

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