deploy.pp |
|
---|---|
Define: staging::deployThe define resource extracts compressed file to a staging location. Parameters:
Usage:
|
define staging::deploy (
$source,
$target,
$staging_path = undef,
$username = undef,
$certificate = undef,
$password = undef,
$environment = undef,
$timeout = undef,
$user = undef,
$group = undef,
$creates = undef,
$unless = undef,
$onlyif = undef
) {
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],
}
} |