Sha256: 544e6086fa1efc887e32eab9b820444f39c5126100cb940e3bd21423f966a5df

Contents?: true

Size: 1.71 KB

Versions: 20

Compression:

Stored size: 1.71 KB

Contents

# The define resource extracts compressed file to a staging location.
define staging::deploy (
  $source,               #: the source file location, supports local files, puppet://, http://, https://, ftp://
  $target,               #: the target extraction directory
  $staging_path = undef, #: the staging location for compressed file. defaults to ${staging::path}/${caller_module_name}
  $username     = undef, #: https or ftp username
  $certificate  = undef, #: https certifcate file
  $password     = undef, #: https or ftp user password or https certificate password
  $environment  = undef, #: environment variable for settings such as http_proxy
  $timeout      = undef, #: the time to wait for the file transfer to complete
  $user         = undef, #: extract file as this user
  $group        = undef, #: extract group as this group
  $creates      = undef, #: the file/folder created after extraction. if unspecified defaults to ${target}/${name}
  $unless       = undef, #: alternative way to conditionally extract file
  $onlyif       = undef  #: alternative way to conditionally extract file
) {

  staging::file { $name:
    source      => $source,
    target      => $staging_path,
    username    => $username,
    certificate => $certificate,
    password    => $password,
    environment => $environment,
    subdir      => $caller_module_name,
    timeout     => $timeout,
  }

  staging::extract { $name:
    target      => $target,
    source      => $staging_path,
    user        => $user,
    group       => $group,
    environment => $environment,
    subdir      => $caller_module_name,
    creates     => $creates,
    unless      => $unless,
    onlyif      => $onlyif,
    require     => Staging::File[$name],
  }

}

Version data entries

20 entries across 20 versions & 1 rubygems

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