From da4b9a1679c62f5ec13020a3015e32393cbaf296 Mon Sep 17 00:00:00 2001
From: Victor Chavez <vdc@stanford.edu>
Date: Thu, 24 Oct 2013 16:44:26 -0700
Subject: [PATCH] oracledb::packages - added logoutput;
 oracledb::packages::no_tdp - added for systems w/out TDP

---
 manifests/packages.pp | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/manifests/packages.pp b/manifests/packages.pp
index a8f0582..73dd24b 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',
+  }
+
+}
-- 
GitLab