phpservermon/puphpet/puppet/modules/staging
Pepijn Over 93ddf5139b Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00
..
docs Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00
files Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00
lib Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00
manifests Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00
spec Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00
tests Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00
.fixtures.yml Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00
.travis.yml Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00
Gemfile Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00
LICENSE Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00
Modulefile Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00
README.md Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00
Rakefile Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00
Vagrantfile Adding Vagrantfile w/ puphpet configuration for easy development 2014-12-05 15:05:52 +01:00

README.md

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
  • gizero
  • Harald Skoglund
  • Hunter Haugen
  • Justin Clayton
  • Owen Jacobson
  • Reid Vandewiele