Sha256: 1ccab61359954d66a264dd72e7dec7a78a403b488a4739b7b2b91f31ad3f0962

Contents?: true

Size: 1.77 KB

Versions: 20

Compression:

Stored size: 1.77 KB

Contents

# Staging module for Puppet

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

[![Build Status](https://secure.travis-ci.org/nanliu/puppet-staging.png?branch=master)](http://travis-ci.org/nanliu/puppet-staging)

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](https://www.github.com/nanliu/puppet-archive).

## Usage

Specify a different default staging path (must be declared before using resource):
```puppet
class { 'staging':
  path  => '/var/staging',
  owner => 'puppet',
  group => 'puppet',
}
```

Staging files from various sources:
```puppet
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:
```puppet
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):
```puppet
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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-retrospec-1.8.0 spec/fixtures/modules/staging/README.md
puppet-retrospec-1.7.0 spec/fixtures/modules/staging/README.md
puppet-retrospec-1.6.1 spec/fixtures/modules/staging/README.md
puppet-retrospec-1.6.0 spec/fixtures/modules/staging/README.md
puppet-retrospec-1.5.0 spec/fixtures/modules/staging/README.md
puppet-retrospec-1.4.1 spec/fixtures/modules/staging/README.md
puppet-retrospec-1.4.0 spec/fixtures/modules/staging/README.md
puppet-retrospec-1.3.2 spec/fixtures/modules/staging/README.md
puppet-retrospec-1.3.1 spec/fixtures/modules/staging/README.md
puppet-retrospec-1.3.0 spec/fixtures/modules/staging/README.md
puppet-retrospec-1.2.1 spec/fixtures/modules/staging/README.md
puppet-retrospec-1.2.0 spec/fixtures/modules/staging/README.md
puppet-retrospec-1.1.0 spec/fixtures/modules/staging/README.md
puppet-retrospec-1.0.0 spec/fixtures/modules/staging/README.md
puppet-retrospec-0.12.1 spec/fixtures/modules/staging/README.md
puppet-retrospec-0.12.0 spec/fixtures/modules/staging/README.md
puppet-retrospec-0.11.0 spec/fixtures/modules/staging/README.md
puppet-retrospec-0.10.0 spec/fixtures/modules/staging/README.md
puppet-retrospec-0.9.1 spec/fixtures/modules/staging/README.md
puppet-retrospec-0.9.0 spec/fixtures/modules/staging/README.md