|
82 | 82 | # @param create_empty_file
|
83 | 83 | # Specifies whether to create an empty file if no fragments are defined. Defaults to true.
|
84 | 84 | #
|
85 |
| -# @param tag |
86 |
| -# Specifies a custom tag or list of custom tags for gatherinng the fragments to combine. |
| 85 | +# @param tagging |
| 86 | +# Specifies a custom tag or list of custom tags for gathering the fragments to combine. |
87 | 87 | #
|
88 | 88 | define concat (
|
89 | 89 | Enum['present', 'absent'] $ensure = 'present',
|
|
105 | 105 | Optional[String] $seluser = undef,
|
106 | 106 | Boolean $force = false,
|
107 | 107 | Boolean $create_empty_file = true,
|
108 |
| - Enum['plain', 'yaml', 'json', 'json-array', 'json-pretty', 'json-array-pretty'] $format = 'plain', |
109 |
| - Optional[Variant[String[1], Array[String[1], 1]]] $tag = undef, |
| 108 | + Enum['plain', 'yaml', 'json', 'json-array', 'json-pretty', 'json-array-pretty'] $format = 'plain', |
| 109 | + Optional[Variant[String[1], Array[String[1], 1]]] $tagging = undef, |
110 | 110 | ) {
|
111 | 111 | $safe_name = regsubst($name, '[\\\\/:~\n\s\+\*\(\)@]', '_', 'G')
|
112 | 112 | $default_warn_message = "# This file is managed by Puppet. DO NOT EDIT.\n"
|
|
126 | 126 | }
|
127 | 127 | }
|
128 | 128 |
|
129 |
| - if $tag =~ Undef { |
| 129 | + if $tagging =~ Undef { |
130 | 130 | $safe_names = $safe_name
|
131 | 131 | } else {
|
132 |
| - $safe_names = flatten($safe_name, $tag) |
| 132 | + $safe_names = flatten($safe_name, $tagging) |
133 | 133 | }
|
134 | 134 |
|
135 | 135 | if $ensure == 'present' {
|
|
0 commit comments