Manages staging directory, along with download/extraction of compressed files.
Use of this module is deprecated. New features are unlikely to be added. Please consider using puppet-archive instead.
Specify a different default staging path (must be declared before using resource):
class { 'staging':
path => '/var/staging',
owner => 'puppet',
group => 'puppet',
}
Staging files from various sources:
staging::file { 'sample':
source => 'puppet:///modules/staging/sample',
}
staging::file { 'apache-tomcat-6.0.35':
source => 'http://apache.cs.utah.edu/tomcat/tomcat-6/v6.0.35/bin/apache-tomcat-6.0.35.tar.gz',
}
Staging and extracting files:
staging::file { 'sample.tar.gz':
source => 'puppet:///modules/staging/sample.tar.gz'
}
staging::extract { 'sample.tar.gz':
target => '/tmp/staging',
creates => '/tmp/staging/sample',
require => Staging::File['sample.tar.gz'],
}
Deploying a file (combining staging and extract):
staging::deploy { 'sample.tar.gz':
source => 'puppet:///modules/staging/sample.tar.gz',
target => '/usr/local',
}
Staging files currently support the following source:
- http(s)://
- puppet://
- ftp://
- s3:// (requires aws cli to be installed and configured.)
- local (though this doesn't serve any real purpose.)
Primarily authored by Nan Liu
- Adrien Thebo
- gizero
- Harald Skoglund
- Hunter Haugen
- Justin Clayton
- Owen Jacobson
- Reid Vandewiele