Puppet Class: db2

Defined in:
manifests/init.pp

Overview

Class: db2

Full description of class db2 here.

Requires


  • puppetlabs/stdlib >= 4.6

Parameters:

  • product (Any) (defaults to: 'EXPRESS_EDITION')
  • systemd_service_description (Any) (defaults to: 'DB2 Instance')
  • systemd_service_accounting (Any) (defaults to: true)
  • instance_name (Any) (defaults to: 'db2inst1')
  • instance_group (Any) (defaults to: 'db2iadm1')
  • instance_group_gid (Any) (defaults to: '4977')
  • instance_user (Any) (defaults to: 'db2inst1')
  • instance_user_uid (Any) (defaults to: '4981')
  • instance_user_shell (Any) (defaults to: '/bin/bash')
  • instance_user_password (Any) (defaults to: 'vagrant')
  • instance_user_home (Any) (defaults to: '/home/db2inst1')
  • fenced_group (Any) (defaults to: 'db2fsdm1')
  • fenced_group_gid (Any) (defaults to: '4976')
  • fenced_user (Any) (defaults to: 'db2sdfe1')
  • fenced_user_uid (Any) (defaults to: '4978')
  • fenced_user_shell (Any) (defaults to: '/bin/bash')
  • fenced_user_password (Any) (defaults to: 'vagrant')
  • fenced_user_home (Any) (defaults to: '/home/db2sdfe1')
  • password_salt (Any) (defaults to: 'vagrant')
  • installer_source_dir (Any) (defaults to: '/vagrant/vagrant')
  • installer_target_dir (Any) (defaults to: '/opt/ibm/db2/V10.1')
  • setup_timeout (Any) (defaults to: 900)
  • install_ksh (Any) (defaults to: true)
  • db2_major_version (Any) (defaults to: '10')


11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'manifests/init.pp', line 11

class db2 (
  $product                     = 'EXPRESS_EDITION',
  $systemd_service_description = 'DB2 Instance',
  $systemd_service_accounting  = true,
  $instance_name               = 'db2inst1',
  $instance_group              = 'db2iadm1',
  $instance_group_gid          = '4977',
  $instance_user               = 'db2inst1',
  $instance_user_uid           = '4981',
  $instance_user_shell         = '/bin/bash',
  $instance_user_password      = 'vagrant',
  $instance_user_home          = '/home/db2inst1',
  $fenced_group                = 'db2fsdm1',
  $fenced_group_gid            = '4976',
  $fenced_user                 = 'db2sdfe1',
  $fenced_user_uid             = '4978',
  $fenced_user_shell           = '/bin/bash',
  $fenced_user_password        = 'vagrant',
  $fenced_user_home            = '/home/db2sdfe1',
  $password_salt               = 'vagrant',
  $installer_source_dir        = '/vagrant/vagrant',
  $installer_target_dir        = '/opt/ibm/db2/V10.1',
  $setup_timeout               = 900,
  $install_ksh                 = true,
  $db2_major_version           = '10',
  ) {

  class { 'db2::install': }
  ~> class { 'db2::service': }
}