From 8f163a6bd82452ebf81283ef129cca4047bd4dd9 Mon Sep 17 00:00:00 2001 From: Benjamin Fischer Date: Sat, 13 Mar 2021 09:15:31 +0100 Subject: [PATCH 1/2] Update metadata.json According to the specs (https://puppet.com/docs/puppet/7.4/modules_metadata.html) name should use dash as separator not slash. This triggers an error when doing a metadata-json-lont on this module. It als prevents our IDE (RubyMine) from correctly resolving module dependencies. --- metadata.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/metadata.json b/metadata.json index 529d631..850fec9 100644 --- a/metadata.json +++ b/metadata.json @@ -1,5 +1,5 @@ { - "name": "crayfishx/db2", + "name": "crayfishx-db2", "version": "1.3.1", "author": "crayfishx", "summary": "Manage DB2 server and client installation and instances", @@ -32,9 +32,8 @@ "project_page": "https://github.com/crayfishx/puppet-db2", "issues_url": "https://github.com/crayfishx/puppet-db2/issues", "dependencies": [ - {"name":"puppetlabs-stdlib","version_requirement":">= 4.11.0 < 5.0.0"}, - {"name":"puppet-archive","version_requirement":">= 0.5.0 < 2.0.0"} - ], - "data_provider": null + {"name":"puppetlabs-stdlib","version_requirement":">= 4.11.0 < 10.0.0"}, + {"name":"puppet-archive","version_requirement":">= 0.5.0 < 8.0.0"} + ] } From 52f84f2dcad0f172b785315024895b6dfe69c35c Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Wed, 12 Jul 2023 13:23:25 +0200 Subject: [PATCH 2/2] replace legacy validate_absolute_path with Absolutepath --- manifests/install.pp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/manifests/install.pp b/manifests/install.pp index ba0d995..935df33 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -8,7 +8,7 @@ $extract = true, $source = undef, $filename = undef, - $installer_root = $::db2::workspace, + Stdlib::Absolutepath $installer_root = $::db2::workspace, $installer_folder = undef, $install_dest = undef, $product = 'DB2_SERVER_EDITION', @@ -68,14 +68,6 @@ # of installation $responsefile="${installer_root}/${name}.rsp" - - # Validate paths and filenames - # - validate_absolute_path($installer_root) - validate_absolute_path($binpath) - validate_absolute_path($responsefile) - - # Extraction of tarball, if $extract is true # if $extract {