Name: puppet-staging
Owner: Continuum Analytics, Inc.
Description: null
Created: 2013-09-04 22:34:36.0
Updated: 2017-09-17 19:50:24.0
Pushed: 2013-07-03 02:37:23.0
Size: 1343
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Manages staging directory, along with download/extraction of compressed files.
WARNING: Version 0.2.0 no longer uses hiera functions. The same behavior should be available in Puppet 3.0.
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'],
}
Staging files currently support the following source: