MarsuperMammal / puppet-s3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Depricating this module. Turns out the wheel didn't need reinventing. Please see nanliu/staging.

Function: This module is used to pull files from AWS S3 locations using the aws ruby SDK, aws cli, or curl mechanisms. It supports both single file and recursive directory sync. It also allows you to manage the files pulled from S3 with common parameters of the Puppet file resource, such as owner, group and mode.

Usage: In the desired manifest, add include s3 class { 's3': } or to control installing the awscli class { s3: include_tools => true, } Then declare resources: Single file: s3::cp { 'name of file to be created':
bucket => 's3 bucket location, in format s3://bucket_name', source => 'path after bucket in s3', dest_path => 'path the file should be copied to locally', s3name => 'name of file on s3', owner => 'owner_name', group => 'group_name', mode => 'mode', }

Recursive Directory: s3::sync { 'name of directory to sync "equiv to $source above"': bucket => 's3 bucket location, in format s3://bucket_name', dest_path => 'top level location to sync directories, should be parent dir of $source/$namevar', owner => 'owner_name', group => 'group_name', mode => 'mode', }

About


Languages

Language:Puppet 52.5%Language:Ruby 40.4%Language:Pascal 7.1%