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.
–++–
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,
}
}
}
|