34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# File 'plans/deploy_scripts.pp', line 34
plan patching::deploy_scripts(
TargetSpec $targets,
Hash $scripts,
Optional[String] $patching_dir = undef,
Optional[String] $bin_dir = undef,
Optional[String] $log_dir = undef,
Optional[String] $owner = undef,
Optional[String] $group = undef,
Optional[String] $mode = undef,
) {
$_targets = run_plan('patching::get_targets', $targets)
return apply($_targets) {
include patching::params
class { 'patching':
scripts => $scripts,
patching_dir => pick($patching_dir, $patching::params::patching_dir),
bin_dir => pick($bin_dir, $patching::params::bin_dir),
log_dir => pick($log_dir, $patching::params::log_dir),
owner => pick($owner, $patching::params::owner),
group => pick($group, $patching::params::group),
mode => pick($mode, $patching::params::mode),
}
}
}
|