Puppet Class: ibm_profile::iib_machine::broker_setup
- Inherits:
- ibm_profile
- Defined in:
- manifests/iib_machine/broker_setup.pp
Summary
This class allows you to setup your IIB broker configuration.Overview
--
ibm_profile::iib_machine::broker_setup
It has support for creating and managing multiple brokers. Use use a ‘yaml` representation of [iib_brokers](/docs/iib_config/iib_broker.html) to specify all properties and params of the brokers you need. When a lot of the brokers have the same defaults, use the `defaults` parameter to specify a Hash of defaults.
Besides the initial broker configuration, you can also configure additional properties. Read about [iib_properties here](/docs/iib_config/iib_property.html).
This class also allows you to register used credentials. Use the ‘credentials` property for this. Read about [iib_credential here](/docs/iib_config/iib_credential.html)
–++–
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'manifests/iib_machine/broker_setup.pp', line 33
class ibm_profile::iib_machine::broker_setup(
Hash $defaults,
Hash $list,
Hash $properties,
Hash $credentials,
) inherits ibm_profile {
echo {"Ensure IIB Brokers(s) ${list.keys.join(', ')}":
withpath => false,
}
$final_defaults = merge($defaults, { 'ensure' => 'present'})
ensure_resources('iib_broker', $list, $final_defaults)
ensure_resources('iib_property', $properties)
ensure_resources('iib_credential', $credentials)
}
|