Puppet Class: db2_profile::database::db_software_multiple

Defined in:
manifests/database/db_software_multiple.pp

Summary

This class allows you in install mutiple instances of DB2 sofware on your system.

Overview

db2_profile::database::db_software_multiple

See the file “LICENSE” for the full license governing this code.

Parameters:

  • software (Hash[String[1], Db2_profile::Sw_def])

    A Hash containing the locations you want the software of a fixpeck to be applied to.

  • source (String[1])

    The location of the DB2 software. Here is an example on how to use this:

    class { '::db2_install::...':
      ...
      source => '/software',
      ...
    }
    


22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'manifests/database/db_software_multiple.pp', line 22

class db2_profile::database::db_software_multiple (
  Hash[String[1], Db2_profile::Sw_def] $software,
  String[1]                 $source,
) {
  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 software ${version} in ${location}":
      withpath => false,
    }

    db2_install::software { "DB2 version ${version} in ${location}":
      version   => $version,
      source    => $source,
      file_name => $file_name,
      location  => $location,
    }
  }
}