Version information
This version is compatible with:
Start using this module
Add this module to your Puppetfile:
mod 'jpuskar-db2', '0.1.4'
Learn more about managing modules with a PuppetfileDocumentation
db2
Table of Contents
- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with db2
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Overview
This module installs db2 on Linux.
Module Description
This module will generate a db2 installer response file, and install db2 on Linux. It has only been tested with DB2 Express v10 on Centos7.
Setup
Beginning with db2
This module expects that the db2 installation source is available to the host. This can be accomplished with any external module for staging binaries.
Usage
The param 'installer_source_dir' expects to find the folder ./exp. For example, if "/root" is specified, than this should exist: "/root/exp/db2"
class {'db2':
instance_user_password => 'mypass',
fenced_user_password => 'mypass',
password_salt => 'random phrase',
installer_source_dir => '/root',
}
Reference
Please see the individual manifest files for additional parameters.
Limitations
This has only been tested with:
- DB2 Express v10 on Centos 7.
- DB2 Express v11 on Centos 7.
Development
This module includes a Vagrantfile for easy testing.
Instructions:
- Install Vagrant.
- Install Virtualbox.
- Clone this repo.
- Stage the db2 binaries.
- Run
vagrant up
.
Staging the binaries
The db2 installer file must be extracted, and db2setup must reside in ./puppet-db2/vagrant/v10/exp/db2setup
.
The folder structure must look like the following:
./puppet-db2/vagrant/
./puppet-db2/vagrant/v10/
./puppet-db2/vagrant/v10/exp/
./puppet-db2/vagrant/v10/exp/db2setup
./puppet-db2/Vagrantfile
To stage the DB2 media, make a folder in the repo root called "vagrant", and ensure that the folder structure looks like: ./puppet-db2/vagrant/v10/exp/db2
.
db2 changelog
v.0.1.4
- Fixed dependency issue; install now requires response file.
- Fixed installation typo.
v.0.1.3
- Added DBINSTANCE env variable to default bash profile.
- Changed systemd unit file to forking type.
- Added systemd_service_accounting parameter.
- Changed default service name to match instance name.
- Disabled db2 fault manager daemon in favor of using systemd.
- Fixed false error when testing this module with Vagrant.
v0.1.2
- Added db2 bin directory to default path.
- Fixed systemd unit file.
- Added ksh package for adm scripts.
v.0.1.1
- Updated metadata.json to indicate that puppetlabs-stdlib 4.13.0 is required.
v.0.1.0
- Initial version.
Dependencies
- puppetlabs-stdlib (>= 4.13.0)