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)

–++–

Parameters:

  • defaults (Hash)

    a Hash of default properties added to all specfied Brokers. Use [iib_brokers](/docs/iib_config/iib_broker.html) to specify the defaults. The default value is: ‘{}`

  • list (Hash)

    The list of brokers to configure. 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. The default value is fetched from the hiera key `ibm_profile::iib_brokers` and is `{}` by default.

  • properties (Hash)

    The list of IIB broker properties. Read about [iib_properties here](/docs/iib_config/iib_property.html). The default value is: ‘{}`

  • credentials (Hash)

    The list of used credentials. Use the ‘credentials` property for this. Read about [iib_credential here](/docs/iib_config/iib_credential.html). The default value is: `{}`



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)
}