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
|
# File 'manifests/script.pp', line 64
define patching::script (
$source = undef,
$content = undef,
$bin_dir = $patching::bin_dir,
$owner = $patching::owner,
$group = $patching::group,
$mode = $patching::mode,
) {
if $source {
file { "${bin_dir}/${name}":
ensure => file,
source => $source,
owner => $owner,
group => $group,
mode => $mode,
}
}
elsif $content {
file { "${bin_dir}/${name}":
ensure => file,
content => $content,
owner => $owner,
group => $group,
mode => $mode,
}
}
else {
fail("Must specify either 'source' or 'content', we received 'undef' for both.")
}
}
|