|
15 | 15 | 1. [Development - Guide for contributing to the module](#development)
|
16 | 16 | 1. [Contributors](#contributors)
|
17 | 17 |
|
18 |
| - |
19 |
| -<a id="moduledescription"></a> |
| 18 | +<a id="module-description"></a> |
20 | 19 | ## Module Description
|
21 | 20 |
|
22 | 21 | This module provides a standard library of resources for Puppet modules. Puppet modules make heavy use of this standard library. The stdlib module adds the following resources to Puppet:
|
@@ -74,18 +73,20 @@ node default {
|
74 | 73 | * [Facts](#facts)
|
75 | 74 | * [Functions](#functions)
|
76 | 75 |
|
77 |
| -<a id="limitations"></a> |
| 76 | +<a id="classes"></a> |
78 | 77 | ### Classes
|
79 | 78 |
|
| 79 | +<a id="public-classes"></a> |
80 | 80 | #### Public classes
|
81 | 81 |
|
82 | 82 | The `stdlib` class has no parameters.
|
83 | 83 |
|
| 84 | +<a id="private-classes"></a> |
84 | 85 | #### Private classes
|
85 | 86 |
|
86 | 87 | * `stdlib::stages`: Manages a standard set of run stages for Puppet.
|
87 | 88 |
|
88 |
| -<a id="definedtypes"></a> |
| 89 | +<a id="defined-types"></a> |
89 | 90 | ### Defined types
|
90 | 91 |
|
91 | 92 | #### `file_line`
|
@@ -203,7 +204,9 @@ Values: String specifying a valid Ruby character encoding.
|
203 | 204 |
|
204 | 205 | Default: 'UTF-8'.
|
205 | 206 |
|
206 |
| -##### `ensure`: Specifies whether the resource is present. |
| 207 | +##### `ensure` |
| 208 | + |
| 209 | +Specifies whether the resource is present. |
207 | 210 |
|
208 | 211 | Values: 'present', 'absent'.
|
209 | 212 |
|
@@ -275,7 +278,7 @@ Replaces all lines matched by `match` parameter, even if `line` already exists i
|
275 | 278 |
|
276 | 279 | Default value: `false`.
|
277 | 280 |
|
278 |
| -<a id="datatypes"></a> |
| 281 | +<a id="data-types"></a> |
279 | 282 | ### Data types
|
280 | 283 |
|
281 | 284 | #### `Stdlib::Absolutepath`
|
@@ -1083,8 +1086,7 @@ Deletes all instances of a given element from an array or hash that match a prov
|
1083 | 1086 |
|
1084 | 1087 | *Note:* This function is an implementation of a Ruby class and might not be UTF8 compatible. To ensure compatibility, use this function with Ruby 2.4.0 or greater.
|
1085 | 1088 |
|
1086 |
| -
|
1087 |
| -For example |
| 1089 | +For example: |
1088 | 1090 |
|
1089 | 1091 | * `delete_regex(['a','b','c','b'], 'b')` returns ['a','c'].
|
1090 | 1092 | * `delete_regex({'a' => 1,'b' => 2,'c' => 3},['b','c'])` returns {'a'=> 1}.
|
@@ -1908,7 +1910,7 @@ $metadata = load_module_metadata('archive')
|
1908 | 1910 | notify { $metadata['author']: }
|
1909 | 1911 | ```
|
1910 | 1912 |
|
1911 |
| -When a module's metadata file is absent, the catalog compilation fails. To avoid this failure: |
| 1913 | +When a module's metadata file is absent, the catalog compilation fails. To avoid this failure, do the following: |
1912 | 1914 |
|
1913 | 1915 | ```
|
1914 | 1916 | $metadata = load_module_metadata('mysql', true)
|
|
0 commit comments