Forge Home

staging

Compressed file staging and deployment

14,232,734 downloads

3,402,118 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 3.2.0 (latest)
  • 3.1.0
  • 3.0.0
  • 2.2.0
  • 2.1.0
  • 2.0.1
  • 2.0.0
  • 1.0.7
  • 1.0.6
released Jun 10th 2016
This version is compatible with:
  • Puppet Enterprise 3.x
  • Puppet >=2.7.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.0.0 Jun 10th 2016

Puppet Staging

Puppet Forge Puppet Forge downloads Puppet Forge score Build Status

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.

NOTE: Version 1.0.0 will be the last feature release. New functionality such as checksum will be implemented in a type/provider module puppet-archive.

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