Forge Home

staging

Compressed file staging and deployment

9,596,842 downloads

9,275,821 latest version

3.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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

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 Jan 16th 2015
This version is compatible with:
  • Puppet Enterprise 3.x
  • Puppet >=2.7.0 <4.0.0
  • , , , , , , , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'nanliu-staging', '1.0.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add nanliu-staging
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install nanliu-staging --version 1.0.3

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

nanliu/staging — version 1.0.3 Jan 16th 2015

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.

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.)

Contributor

  • Adrien Thebo
  • gizero
  • Harald Skoglund
  • Hunter Haugen
  • Justin Clayton
  • Owen Jacobson
  • Reid Vandewiele