Skip to content

plumgrid/puppet-staging

This branch is 2 commits ahead of, 189 commits behind voxpupuli/puppet-staging:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d90abeb · Dec 5, 2015
Nov 21, 2012
Feb 12, 2014
Jan 14, 2015
Oct 14, 2015
Oct 12, 2015
Feb 12, 2014
Oct 27, 2014
Jun 27, 2014
Apr 23, 2015
Oct 27, 2014
Jul 3, 2013
Jun 9, 2015
Oct 27, 2014
Jul 3, 2013
Apr 23, 2015

Repository files navigation

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

Author

Primarily authored by Nan Liu

Contributor

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 59.3%
  • Puppet 40.7%