52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# File 'manifests/init.pp', line 52
class patching (
$patching_dir = $patching::params::patching_dir,
$bin_dir = $patching::params::bin_dir,
$log_dir = $patching::params::log_dir,
$owner = $patching::params::owner,
$group = $patching::params::group,
$mode = $patching::params::mode,
Optional[Hash] $scripts = undef,
) inherits patching::params {
if $patching_dir {
ensure_resource('file', $patching_dir, {
ensure => directory,
owner => $owner,
group => $group,
})
}
if $bin_dir {
ensure_resource('file', $bin_dir, {
ensure => directory,
owner => $owner,
group => $group,
})
}
if $log_dir {
ensure_resource('file', $log_dir, {
ensure => directory,
owner => $owner,
group => $group,
})
}
if $scripts {
$defaults = {
bin_dir => $bin_dir,
owner => $owner,
group => $group,
mode => $mode,
}
ensure_resources('patching::script', $scripts, $defaults)
}
}
|