Forge Home

db2

Installs and configures DB2.

6,704 downloads

5,848 latest version

4.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.4 (latest)
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Jun 6th 2017
This version is compatible with:

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'jpuskar-db2', '0.1.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jpuskar-db2
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jpuskar-db2 --version 0.1.4

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

jpuskar/db2 — version 0.1.4 Jun 6th 2017

db2

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with db2
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. 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:

  1. Install Vagrant.
  2. Install Virtualbox.
  3. Clone this repo.
  4. Stage the db2 binaries.
  5. 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.