Puppet Class: ibm_profile::mq_machine::autostart

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

Summary

This class enables autostart for the specfied MQ managers.

Overview

--

ibm_profile::mq_machine::autostart

This means a ‘systemctl` unit is created and the named MQ managers are added.

–++–

Parameters:

  • list (Hash) (defaults to: $ibm_profile::mq_managers)

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



13
14
15
16
17
18
19
20
21
22
23
24
# File 'manifests/mq_machine/autostart.pp', line 13

class ibm_profile::mq_machine::autostart(
  Hash $list = $ibm_profile::mq_managers,
) inherits ibm_profile {
  echo {"Ensure Autostart for MQ Manager(s) ${list.keys.join(', ')}":
    withpath => false,
  }
  $list.keys.each |$qm| {
    mq_install::autostart {$qm:
      ensure => 'present',
    }
  }
}