Puppet Class: ibm_profile::iib_machine::autostart

Inherits:
ibm_profile
Defined in:
manifests/iib_machine/autostart.pp

Summary

This class enables autostart for the specfied brokers.

Overview

--

ibm_profile::iib_machine::autostart

This means a ‘systemctl` unit is created and the named brokers are added. For autostart to be enabled, the class needs the OS user and the OS group the broker will run in. It also needs the version of IIB.

–++–

Parameters:

  • list (Hash)

    A list of brokers. The default value is fetched from the hiera key ‘ibm_profile::iib_brokers`. To fill this list use a `yaml` representation of [iib_brokers](/docs/iib_config/iib_broker.html)

  • version (String)

    The IIB version to use when autostarting the brokers. The default is value is fetched from the hiera key ‘ibm_profile::iib_machine::software::version`.

  • iib_os_user (String)

    The OS user used for autostarting the brokers. The default is ‘iibadmin`

  • iib_os_group (String)

    The OS group used for autostarting the brokers. The default is ‘mqbrkrs`



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'manifests/iib_machine/autostart.pp', line 25

class ibm_profile::iib_machine::autostart(
  Hash   $list,
  String $version,
  String $iib_os_user,
  String $iib_os_group,
) inherits ibm_profile {
  echo {"Ensure Autostart for IIB Broker(s) ${list.keys.join(', ')}":
    withpath => false,
  }
  $list.keys.each |$broker| {
    iib_install::autostart {$broker:
      ensure      => 'present',
      iib_version => $version,
      iib_user    => $iib_os_user,
      iib_group   => $iib_os_group,
    }
  }
}