Forge Home

staging

File Staging

9,824,778 downloads

9,502,207 latest version

4.1 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

  • 1.0.3 (latest)
  • 1.0.2
  • 1.0.0
  • 0.4.1
  • 0.4.0
  • 0.3.1
  • 0.3.0
  • 0.2.1
  • 0.2.0 (deleted)
  • 0.1.0 (deleted)
released Jul 2nd 2013
This module has been deprecated by its author since Jun 26th 2023.

The author has suggested puppet-staging as its replacement.

Start using this module

Documentation

nanliu/staging — version 0.3.1 Jul 2nd 2013

Staging module for Puppet

Manages staging directory, along with download/extraction of compressed files.

Build Status

WARNING: Version 0.2.0 no longer uses hiera functions. The same behavior should be available in Puppet 3.0.

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'],
}

Staging files currently support the following source:

  • http(s)://
  • puppet://
  • ftp://
  • local (though this doesn't serve any real purpose.)

Contributor

  • Adrien Thebo
  • Harald Skoglund
  • Hunter Haugen
  • Reid Vandewiele