Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

db2 (2) Versions 0.1.1

Installs/Configures IBM DB2 Enterprise Server version 10.1.1

Policyfile
Berkshelf
Knife
cookbook 'db2', '= 0.1.1', :supermarket
cookbook 'db2', '= 0.1.1'
knife supermarket install db2
knife supermarket download db2
README
Dependencies
Changelog
Quality 0%

db2 Cookbook

This cookbook installs IBM DB2 Enterprise Server version 10.1.1 at /opt/IBM/InstallationManager path.
This cookbook creates a DB2 instance with three databases in it. The names of the databases are specific to the WebSphere BPM requirements.

This cookbook can be used with my FTPlogin cookbook to scp binaries required to copy. I am not including the binaries in this cookbook.

The code also verifies the checksum of the files after copying to the node. The install will fail if the checksum fails.

Requirements

Platforms: Ubuntu 15.04

Attributes

default['db2']['package-name-1'] = 'DB2_ESE_10_Linux_x86-64.tar.gz'
default['db2']['binaryhost'] = 'Server where binaries are hosted'
default['db2']['ftploginuser'] = 'User to login to the binary host'
default['db2']['ftppath'] = 'Path where binaries are stored'
default['db2']['package1-sha256sum'] = 'b7b0e3902ffcfa4851e542e7ddb345623f2391635f212cc62113dee48e6b64f3'
default['db2']['db2-responsefile'] = 'db2_Response_File_Install.rsp'
default['db2']['db2inst1-INS'] = 'db2inst1.rsp'
default['db2']['db2_install_dir'] = '/opt/ibm/db2/10.1'
default['db2']['install_type'] = 'CUSTOM'
default['db2']['db2inst1-user'] = 'db2inst1'
default['db2']['db2fence1-user'] = 'db2fenc1'
default['db2']['db2inst1-group'] = 'db2iadm1'
default['db2']['db2fence1-group'] = 'db2fadm1'
default['db2']['db2_password'] = 'W1zplay11'
default['db2']['db2inst1-home'] = '/home/db2inst1'
default['db2']['db2fence1-home'] = '/home/db2fenc1'
default['db2']['db2user1-home'] = '/home/bpmuser'
default['db2']['db2user1-user'] = 'bpmuser'
default['db2']['db2user1-group'] = 'bpmuser'
default['db2']['packagefp1-name-1'] = 'v10.1fp1_linuxx64_server.tar.gz'
default['db2']['packagefp1-sha256sum'] = 'cc3d67599f19a3d9b6bcbd2cead27404564fc05ba8909da49891939ad7e0beff'

Usage

Add to the node's run list

knife node run_list remove BPMNode 'recipe[db2::default]'
knife node run_list remove BPMNode 'recipe[db2::installfp]'
knife node run_list remove BPMNode 'recipe[db2::instance]'
knife node run_list remove BPMNode 'recipe[db2::createdb]'

recipe::default installs Db2 10.1
recipe::installfp installs Db2 10.1.1 fixpack
recipe::instance creates Db2 database instance
recipe::createdb creates three Db2 databases required for WebSphere BPM

License and Authors

Rohit Gabriel, Auckland, New Zealand.

Profile: https://nz.linkedin.com/in/rohit-gabriel-22a76320

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

db2 CHANGELOG

This file is used to list changes made in each version of the db2 cookbook.

0.1.0

  • [your_name] - Initial release of db2

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

Foodcritic Metric
            

0.1.1 failed this metric

FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:28
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:36
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:40
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:41
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:42
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:46
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:47
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:48
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:57
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:58
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:60
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:61
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:69
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:70
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:72
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/createdb.rb:73
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/default.rb:22
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/default.rb:23
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/default.rb:87
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/default.rb:88
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/default.rb:89
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/installfp.rb:22
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/installfp.rb:23
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:21
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:24
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:28
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:29
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:30
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:34
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:38
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:39
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:40
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:45
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:46
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:47
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:52
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:53
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:54
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:63
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:64
FC002: Avoid string interpolation where not required: /tmp/cook/49e256a1f2a993a15b079138/db2/recipes/instance.rb:65