Version information
released Mar 27th 2016
This version is compatible with:
- Puppet 3.x
Start using this module
Add this module to your Puppetfile:
mod 'jbussdieker-cloud_file', '0.1.8'
Learn more about managing modules with a PuppetfileDocumentation
jbussdieker/cloud_file — version 0.1.8 Mar 27th 2016
Cloud File Module
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