fuel-library/deployment/puppet/staging
Bogdan Dobrelya 5551b1467b Add retries for rabbitmqadmin file
Staging::file used by Rabbitmq::Install::Rabbitmqadmin cannot handle
non transient (connectivity) errors.

The solution is to add retries for the file transfer when non
transient connection errors exist, which is:

* sync upstream rabbitmq module fix
  for https://tickets.puppetlabs.com/browse/MODULES-1650
* sync upstream staging module fix
  for https://tickets.puppetlabs.com/browse/MODULES-1651

Closes-bug: #1410119

Change-Id: I7e38754d0d65480a71e3caaed723a41fb8784cbf
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-01-13 12:25:45 +01:00
..
docs Adapt rabbitmq module for Fuel 2015-01-09 16:11:28 +01:00
files Adapt rabbitmq module for Fuel 2015-01-09 16:11:28 +01:00
lib Adapt rabbitmq module for Fuel 2015-01-09 16:11:28 +01:00
manifests Add retries for rabbitmqadmin file 2015-01-13 12:25:45 +01:00
spec Add retries for rabbitmqadmin file 2015-01-13 12:25:45 +01:00
tests Adapt rabbitmq module for Fuel 2015-01-09 16:11:28 +01:00
.fixtures.yml Adapt rabbitmq module for Fuel 2015-01-09 16:11:28 +01:00
.gitignore Adapt rabbitmq module for Fuel 2015-01-09 16:11:28 +01:00
.travis.yml Adapt rabbitmq module for Fuel 2015-01-09 16:11:28 +01:00
Gemfile Adapt rabbitmq module for Fuel 2015-01-09 16:11:28 +01:00
LICENSE Adapt rabbitmq module for Fuel 2015-01-09 16:11:28 +01:00
Modulefile Adapt rabbitmq module for Fuel 2015-01-09 16:11:28 +01:00
README.md Adapt rabbitmq module for Fuel 2015-01-09 16:11:28 +01:00
Rakefile Adapt rabbitmq module for Fuel 2015-01-09 16:11:28 +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.

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