Puppet Data Type Alias: Stdlib::CreateResources

Defined in:
vendor_modules/stdlib/types/createresources.pp

Summary

A type description used for the create_resources function

Overview

Alias of

Hash[String[1], Hash[String[1], Any]]

Examples:

As a class parameter

class myclass (
  Stdlib::CreateResources $myresources = {},
) {
  # Using create_resources
  create_resources('myresource', $myresources)

  # Using iteration
  $myresources.each |$myresource_name, $myresource_attrs| {
    myresource { $myresource_name:
      * => $myresource_attrs,
    }
  }
}


# File 'vendor_modules/stdlib/types/createresources.pp', line 17