Puppet Class: db2_profile::database::db_fixpack
- Defined in:
- manifests/database/db_fixpack.pp
Summary
This class ensure's that the correct DB2 fixpack is installed.Overview
db2_profile::database::db_fixpack
See the file “LICENSE” for the full license governing this code.
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 |
# File 'manifests/database/db_fixpack.pp', line 55
class db2_profile::database::db_fixpack (
Stdlib::Absolutepath $location,
String[1] $source,
Optional[String[1]] $file_name = undef,
Variant[Boolean,Enum['on_failure']]
$logoutput = lookup({ name => 'logoutput', default_value => 'on_failure' }),
Stdlib::Absolutepath $temp_dir = '/tmp',
Optional[String[1]] $version = undef
) {
easy_type::debug_evaluation() # Show local variable on extended debug
if $version {
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,
}
}
}
|