software
Overview
This class install’s specified version of the the DB2 software on the system. The source zip file from IBM is found at the location specified at source
. By default it will install only the minimal required set.
Here is an example on how to use it:
class { '::db2_install::software':
source => '/software',
version => '11.5',
location => '/opt/ibm/db2/V11.5',
file_name => 'DB2S_11.5.4_MPML.tar.gz',
version => '9.0.0.0'
temp_dir => '/my_tmp'
logoutput => 'true,
}
On systems with a secured /tmp
direcory, you MUST specify the temp_dir
parameter and specify a directory that puppet is allowed to execute scripts from. It must also have enough space to receive the extracted DB2 installation kit.
Attributes
Attribute Name | Short Description |
---|---|
allow_insecure | When set to true Ignore HTTPS certificate errors |
components | |
ensure | State to obtain. |
file_name | The file containing the install kit for the DB2 software. |
location | The location (e.g. |
logoutput | If you want to see the output of the exec resources in the type, you can set this value to true . |
source | The location of the DB2 software. |
temp_dir | This defined type uses a temporary directory. |
version | The version to be installed. |
ensure
State to obtain.
The ensure attribute can be one of two values:
- present
- absent
When you specify present
, Puppet will make sure the resource is available with all specified options and properties.
When the resource is already available(installed), and all attributes are as the are specified, Puppet will do nothing.
When you specify absent
, Puppet will remove the resource if it is available. If it is not installed, Puppet will do nothing.
Type: Enum['present','absent']
Default:'present'
version
The version to be installed. Here is an example on how to use this:
class { '::db2_install::software':
...
version => '11.0.0.0',
...
}
Type: Db2_install::Version
Default:undef
source
The location of the DB2 software.
Here is an example on how to use this:
class { '::db2_install::...':
...
source => '/software',
...
}
Type: String[1]
Default:undef
location
The location (e.g. folder) that you want the software to be installed in. Type: Stdlib::Absolutepath
Default:undef
temp_dir
This defined type uses a temporary directory. By default this is \tmp
. If you want to use an other directory for this, you must specify this parameter.
Here is an example on how to use this:
class { '::db2_install::...':
...
temp_dir => '/my_tmp_dir',
...
}
On systems with a secured /tmp
direcory, you MUST specify the tmp_dir
parameter and specify a directory that puppet is allowed to execute scripts from. It must also have enough space to receive the extracted MQ installation kit.
Type: Stdlib::Absolutepath
Default:'/tmp'
file_name
The file containing the install kit for the DB2 software.
Type: String[1]
Default:undef
components
The DB2 component you want to install. Type: Array[String[1]]
Default:lookup('db2_install::components')
logoutput
If you want to see the output of the exec
resources in the type, you can set this value to true
. The default is on_failure
.
Here is an example on how to use this:
class { '::db2_install::...':
...
logoutput => true,
...
}
Type: Variant[Boolean,Enum['on_failure']]
Default:lookup( { name => 'logoutput', default_value => 'on_failure' })
allow_insecure
When set to true
Ignore HTTPS certificate errors
(default: false) Type: Boolean
Default:lookup( { name => 'allow_insecure', default_value => false })