cookbook 'db2', '~> 0.1.2'
db2 (2) Versions 0.1.2 Follow9
Installs/Configures IBM DB2 Enterprise Server version 10.1.1
cookbook 'db2', '~> 0.1.2', :supermarket
knife supermarket install db2
knife supermarket download db2
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.
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.
Collaborator Number Metric
0.1.2 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.2 failed this metric
FC064: Ensure issues_url is set in metadata: db2/metadata.rb:1
FC065: Ensure source_url is set in metadata: db2/metadata.rb:1
FC066: Ensure chef_version is set in metadata: db2/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: db2/metadata.rb:1
FC069: Ensure standardized license defined in metadata: db2/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.2 passed this metric
Testing File Metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.2 failed this metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.2 failed this metric
FC064: Ensure issues_url is set in metadata: db2/metadata.rb:1
FC065: Ensure source_url is set in metadata: db2/metadata.rb:1
FC066: Ensure chef_version is set in metadata: db2/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: db2/metadata.rb:1
FC069: Ensure standardized license defined in metadata: db2/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.2 passed this metric
Testing File Metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.2 failed this metric
FC065: Ensure source_url is set in metadata: db2/metadata.rb:1
FC066: Ensure chef_version is set in metadata: db2/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: db2/metadata.rb:1
FC069: Ensure standardized license defined in metadata: db2/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.2 passed this metric
Testing File Metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.2 failed this metric
0.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number