Puppet Class: ibm_profile::iib_machine::deployments

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

Summary

Overview

--

ibm_profile::iib_machine::deployments

This class allows you to setup your IIB deployments. Use use a ‘yaml` representation of [iib_deployment](/docs/iib_config/iib_deployment.html) to specify all properties and params of the deployment you need. When a lot of the deployments have the same defaults, use the `defaults` parameter to specify a Hash of defaults.

–++–

Parameters:

  • defaults (Hash)

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

  • list (Hash)

    a Hash of deployments. Use [iib_deployment](/docs/iib_config/iib_deployment.html) to specify the defaults. The default value is: ‘{}`



19
20
21
22
23
24
25
26
27
28
# File 'manifests/iib_machine/deployments.pp', line 19

class ibm_profile::iib_machine::deployments(
  Hash $defaults,
  Hash $list,
) inherits ibm_profile {
  echo {"Ensure IIB deployments(s) ${list.keys.join(', ')}":
    withpath => false,
  }
  $final_defaults = merge($defaults, { 'ensure' => 'present'})
  ensure_resources('iib_deployment', $list, $final_defaults)
}