Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

voxpupuli/puppet-staging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dddd0fc · Apr 27, 2022
Feb 10, 2020
Nov 21, 2012
Apr 8, 2019
Feb 12, 2014
Apr 16, 2017
Dec 13, 2019
Apr 27, 2022
Dec 16, 2018
Jun 11, 2017
Apr 4, 2020
Sep 5, 2018
Dec 16, 2018
Mar 19, 2016
Jun 11, 2017
Feb 10, 2020
May 13, 2016
Dec 23, 2019
Feb 11, 2017
Mar 28, 2018
Dec 6, 2019
Apr 4, 2020
May 14, 2017
Mar 20, 2017
Apr 4, 2020
Apr 6, 2019

Staging module for Puppet

Build Status Code Coverage Puppet Forge Puppet Forge - downloads Puppet Forge - endorsement Puppet Forge - scores

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

Use of this module is deprecated. New features are unlikely to be added. Please consider using puppet-archive instead.

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