diff --git a/manifests/packages.pp b/manifests/packages.pp index a8f0582532ee78bac00d0e4dac38d4d981ca636d..73dd24ba9d80e5fe6fb3d1fcd0e3fec4979aa069 100644 --- a/manifests/packages.pp +++ b/manifests/packages.pp @@ -31,10 +31,22 @@ class oracledb::packages { # rhel6 will give you an error if tdp BIN file not installed default: { exec { 'check el6 tdp bin installed': - command => 'echo TDP is not installed! Install it by hand from \ - /afs/ir/product/storage/TDPO_LINUX_LATEST', - unless => 'ls /opt/tivoli/tsm/client/oracle/properties/version/TSM_Data_Protection_Oracle.cmptag', + command => 'echo TDP is not installed! Install it by hand from \ + /afs/ir/product/storage/TDPO_LINUX_LATEST', + logoutput => true, + unless => 'ls /opt/tivoli/tsm/client/oracle/properties/version/TSM_Data_Protection_Oracle.cmptag', } } } } + +class oracledb::packages::no_tdp inherits oracledb::packages { + + Exec['check el6 tdp bin installed'] { + command => 'echo you probably want the oracledb::packages class instead of \ + oracledb::packages::no_tdp, or you should uninstall TDP', + logoutput => true, + onlyif => 'ls /opt/tivoli/tsm/client/oracle/properties/version/TSM_Data_Protection_Oracle.cmptag', + } + +}