File: createresources.pp

package info (click to toggle)
puppet-module-puppetlabs-stdlib 9.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,448 kB
  • sloc: ruby: 3,522; sh: 46; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# @summary A type description used for the create_resources function
#
# @example 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,
#       }
#     }
#   }
type Stdlib::CreateResources = Hash[String[1], Hash[String[1], Any]]