Puppet Class: db2_profile::database::db_fixpack_multiple
- Defined in:
- manifests/database/db_fixpack_multiple.pp
Summary
This class ensure's that the correct DB2 fixpack is installed.Overview
db2_profile::database::db_fixpack_multiple
See the file “LICENSE” for the full license governing this code.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'manifests/database/db_fixpack_multiple.pp', line 43
class db2_profile::database::db_fixpack_multiple (
Hash[String[1], Db2_profile::Sw_def] $software,
String[1] $source,
Variant[Boolean,Enum['on_failure']]
$logoutput = lookup({ name => 'logoutput', default_value => 'on_failure' }),
Stdlib::Absolutepath $temp_dir = '/tmp',
) {
easy_type::debug_evaluation() # Show local variable on extended debug
$software.each |$name, $properties| {
$version = $properties['version']
$location = $properties['location']
$file_name = $properties['file_name']
echo { "Ensure DB2 fixpack version ${version} on ${location}":
withpath => false,
}
#
# Now we need the file name
#
assert_type(String[1], $file_name)
db2_install::fixpack { "Fixpack ${version} in ${location}":
version => $version,
source => $source,
location => $location,
file_name => $file_name,
temp_dir => $temp_dir,
}
}
}
|