Puppet Class: db2_profile::database::db_software

Defined in:
manifests/database/db_software.pp

Summary

This class installs the IBM DB2 sofware on your system.

Overview

db2_profile::database::db_software

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

Parameters:

  • file_name (String[1])

    The file containing the install kit for the DB2 software.

  • location (Stdlib::Absolutepath)

    The locatin where the DB2 sofware is or will be installed.

  • source (String[1])

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

    class { '::db2_install::...':
      ...
      source => '/software',
      ...
    }
    
  • version (Db2_Install::Version)

    The version to be installed. Here is an example on how to use this:

    class { '::db2_install::software':
      ...
      version => '11.0.0.0',
      ...
    }
    


34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'manifests/database/db_software.pp', line 34

class db2_profile::database::db_software (
  String[1]             $file_name,
  Stdlib::Absolutepath  $location,
  String[1]             $source,
  Db2_Install::Version  $version
) {
  easy_type::debug_evaluation() # Show local variable on extended debug

  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,
  }
}