4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'modules/bridge_utils/manifests/workaround_debian_bug_989162.pp', line 4
class bridge_utils::workaround_debian_bug_989162 (
) {
debian::codename::require('bullseye')
ensure_packages(['bridge-utils'])
$src_patch_file = 'puppet:///modules/bridge_utils/bridge-utils.sh.patch'
$file_to_patch = '/lib/bridge-utils/bridge-utils.sh'
$patch = "${file_to_patch}.patch"
file { $patch:
source => $src_patch_file,
}
exec { "patch ${file_to_patch} with ${patch}":
command => "/usr/bin/patch --forward ${file_to_patch} ${patch}",
unless => "/usr/bin/patch --reverse --dry-run -f ${file_to_patch} ${patch}",
require => File[$patch],
}
}
|