Version information
released Dec 26th 2016
This version is compatible with:
- Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 3.8.7 < 5.0.0
- , , , , , , , , , ,
This module has been deprecated by its author since Dec 18th 2018.
The author has suggested puppet-archive as its replacement.
Start using this module
Documentation
puppet/staging — version 2.1.0 Dec 26th 2016
Staging module for Puppet
Manages staging directory, along with download/extraction of compressed files.
Usage
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.)
Author
Primarily authored by Nan Liu
Contributors
- Adrien Thebo
- gizero
- Harald Skoglund
- Hunter Haugen
- Justin Clayton
- Owen Jacobson
- Reid Vandewiele
Changelog
2016-12-25 - Release 2.1.0
- Modulesync with latest Vox Pupuli defaults
- Ability to manage file attributes on target
- Strip trailing slashes off paths
- Improve spec tests
2016-07-09 - Release 2.0.1
- Fix some typos/spelling
- modulesync with latest Vox Pupuli defaults
2016-06-10 - Release 2.0.0
- Drop of Ruby1.8 support!
- modulesync to latest voxpupli configs
- Add support for OpenBSD
- Allow to pass in the full path to a file instead of specifying the file name explictly
- Revocation of 1.0.6 (wrong semver)
2016-03-20 - Release 1.0.6
- Publish the first version of this module in the puppet namespace.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.