You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- DO NOT EDIT: This document was generated by Puppet Strings -->
3
4
4
5
## Table of Contents
5
6
6
-
**Resource types**
7
+
### Resource types
7
8
8
-
*[`augeas`](#augeas): Apply a change or an array of changes to the filesystem using the augeas tool. Requires: - [Augeas](http://www.augeas.net) - The ruby-augea
9
+
*[`augeas`](#augeas): Apply a change or an array of changes to the filesystem using the augeas tool.
9
10
10
11
## Resource types
11
12
12
-
### augeas
13
-
14
-
Apply a change or an array of changes to the filesystem
@@ -46,27 +52,88 @@ The following properties are available in the `augeas` type.
46
52
47
53
The expected return code from the augeas command. Should not be set.
48
54
49
-
Default value: 0
55
+
Default value: `0`
50
56
51
57
#### Parameters
52
58
53
59
The following parameters are available in the `augeas` type.
54
60
55
-
##### `name`
61
+
*[`changes`](#changes)
62
+
*[`context`](#context)
63
+
*[`force`](#force)
64
+
*[`incl`](#incl)
65
+
*[`lens`](#lens)
66
+
*[`load_path`](#load_path)
67
+
*[`name`](#name)
68
+
*[`onlyif`](#onlyif)
69
+
*[`provider`](#provider)
70
+
*[`root`](#root)
71
+
*[`show_diff`](#show_diff)
72
+
*[`type_check`](#type_check)
73
+
74
+
##### <aname="changes"></a>`changes`
56
75
57
-
namevar
76
+
The changes which should be applied to the filesystem. This
77
+
can be a command or an array of commands. The following commands are supported:
58
78
59
-
The name of this task. Used for uniqueness.
79
+
*`set <PATH> <VALUE>` --- Sets the value `VALUE` at location `PATH`
80
+
*`setm <PATH> <SUB> <VALUE>` --- Sets multiple nodes (matching `SUB` relative to `PATH`) to `VALUE`
81
+
*`rm <PATH>` --- Removes the node at location `PATH`
82
+
*`remove <PATH>` --- Synonym for `rm`
83
+
*`clear <PATH>` --- Sets the node at `PATH` to `NULL`, creating it if needed
84
+
*`clearm <PATH> <SUB>` --- Sets multiple nodes (matching `SUB` relative to `PATH`) to `NULL`
85
+
*`touch <PATH>` --- Creates `PATH` with the value `NULL` if it does not exist
86
+
*`ins <LABEL> (before|after) <PATH>` --- Inserts an empty node `LABEL` either before or after `PATH`.
87
+
*`insert <LABEL> <WHERE> <PATH>` --- Synonym for `ins`
88
+
*`mv <PATH> <OTHER PATH>` --- Moves a node at `PATH` to the new location `OTHER PATH`
89
+
*`move <PATH> <OTHER PATH>` --- Synonym for `mv`
90
+
*`rename <PATH> <LABEL>` --- Rename a node at `PATH` to a new `LABEL`
91
+
*`defvar <NAME> <PATH>` --- Sets Augeas variable `$NAME` to `PATH`
92
+
*`defnode <NAME> <PATH> <VALUE>` --- Sets Augeas variable `$NAME` to `PATH`, creating it with `VALUE` if needed
93
+
94
+
If the `context` parameter is set, that value is prepended to any relative `PATH`s.
60
95
61
-
##### `context`
96
+
##### <aname="context"></a>`context`
62
97
63
98
Optional context path. This value is prepended to the paths of all
64
99
changes if the path is relative. If the `incl` parameter is set,
65
100
defaults to `/files + incl`; otherwise, defaults to the empty string.
66
101
67
-
Default value: ''
102
+
Default value: `''`
103
+
104
+
##### <aname="force"></a>`force`
105
+
106
+
Optional command to force the augeas type to execute even if it thinks changes
107
+
will not be made. This does not override the `onlyif` parameter.
108
+
109
+
Default value: ``false``
110
+
111
+
##### <aname="incl"></a>`incl`
112
+
113
+
Load only a specific file, such as `/etc/hosts`. This can greatly speed
114
+
up the execution the resource. When this parameter is set, you must also
115
+
set the `lens` parameter to indicate which lens to use.
116
+
117
+
##### <aname="lens"></a>`lens`
118
+
119
+
Use a specific lens, such as `Hosts.lns`. When this parameter is set, you
120
+
must also set the `incl` parameter to indicate which file to load.
121
+
The Augeas documentation includes [a list of available lenses](http://augeas.net/stock_lenses.html).
122
+
123
+
##### <aname="load_path"></a>`load_path`
124
+
125
+
Optional colon-separated list or array of directories; these directories are searched for schema definitions.
126
+
The agent's `$libdir/augeas/lenses` path will always be added to support pluginsync.
127
+
128
+
Default value: `''`
129
+
130
+
##### <aname="name"></a>`name`
131
+
132
+
namevar
133
+
134
+
The name of this task. Used for uniqueness.
68
135
69
-
##### `onlyif`
136
+
##### <aname="onlyif"></a>`onlyif`
70
137
71
138
Optional augeas command and comparisons to control the execution of this type.
72
139
@@ -95,78 +162,36 @@ where:
95
162
*`INT` is a number
96
163
*`AN_ARRAY` is in the form `['a string', 'another']`
97
164
98
-
Default value: ''
165
+
Default value: `''`
99
166
100
-
##### `changes`
167
+
##### <aname="provider"></a>`provider`
101
168
102
-
The changes which should be applied to the filesystem. This
103
-
can be a command or an array of commands. The following commands are supported:
104
-
105
-
*`set <PATH> <VALUE>` --- Sets the value `VALUE` at location `PATH`
106
-
*`setm <PATH> <SUB> <VALUE>` --- Sets multiple nodes (matching `SUB` relative to `PATH`) to `VALUE`
107
-
*`rm <PATH>` --- Removes the node at location `PATH`
108
-
*`remove <PATH>` --- Synonym for `rm`
109
-
*`clear <PATH>` --- Sets the node at `PATH` to `NULL`, creating it if needed
110
-
*`clearm <PATH> <SUB>` --- Sets multiple nodes (matching `SUB` relative to `PATH`) to `NULL`
111
-
*`touch <PATH>` --- Creates `PATH` with the value `NULL` if it does not exist
112
-
*`ins <LABEL> (before|after) <PATH>` --- Inserts an empty node `LABEL` either before or after `PATH`.
113
-
*`insert <LABEL> <WHERE> <PATH>` --- Synonym for `ins`
114
-
*`mv <PATH> <OTHER PATH>` --- Moves a node at `PATH` to the new location `OTHER PATH`
115
-
*`move <PATH> <OTHER PATH>` --- Synonym for `mv`
116
-
*`rename <PATH> <LABEL>` --- Rename a node at `PATH` to a new `LABEL`
117
-
*`defvar <NAME> <PATH>` --- Sets Augeas variable `$NAME` to `PATH`
118
-
*`defnode <NAME> <PATH> <VALUE>` --- Sets Augeas variable `$NAME` to `PATH`, creating it with `VALUE` if needed
119
-
120
-
If the `context` parameter is set, that value is prepended to any relative `PATH`s.
169
+
The specific backend to use for this `augeas` resource. You will seldom need to specify this --- Puppet will usually
170
+
discover the appropriate provider for your platform.
121
171
122
-
##### `root`
172
+
##### <aname="root"></a>`root`
123
173
124
174
A file system path; all files loaded by Augeas are loaded underneath `root`.
125
175
126
-
Default value: /
127
-
128
-
##### `load_path`
129
-
130
-
Optional colon-separated list or array of directories; these directories are searched for schema definitions. The agent's `$libdir/augeas/lenses` path will always be added to support pluginsync.
176
+
Default value: `/`
131
177
132
-
Default value: ''
178
+
##### <aname="show_diff"></a>`show_diff`
133
179
134
-
##### `force`
135
-
136
-
Optional command to force the augeas type to execute even if it thinks changes
137
-
will not be made. This does not override the `onlyif` parameter.
138
-
139
-
Default value: `false`
140
-
141
-
##### `type_check`
142
-
143
-
Valid values: `true`, `false`
144
-
145
-
Whether augeas should perform typechecking. Defaults to false.
146
-
147
-
Default value: `false`
148
-
149
-
##### `lens`
150
-
151
-
Use a specific lens, such as `Hosts.lns`. When this parameter is set, you
152
-
must also set the `incl` parameter to indicate which file to load.
153
-
The Augeas documentation includes [a list of available lenses](http://augeas.net/stock_lenses.html).
154
-
155
-
##### `incl`
156
-
157
-
Load only a specific file, such as `/etc/hosts`. This can greatly speed
158
-
up the execution the resource. When this parameter is set, you must also
159
-
set the `lens` parameter to indicate which lens to use.
160
-
161
-
##### `show_diff`
162
-
163
-
Valid values: `true`, `false`, yes, no
180
+
Valid values: ``true``, ``false``, `yes`, `no`
164
181
165
182
Whether to display differences when the file changes, defaulting to
166
183
true. This parameter is useful for files that may contain passwords or
167
184
other secret data, which might otherwise be included in Puppet reports or
168
185
other insecure outputs. If the global `show_diff` setting
169
186
is false, then no diffs will be shown even if this parameter is true.
170
187
171
-
Default value: `true`
188
+
Default value: ``true``
189
+
190
+
##### <aname="type_check"></a>`type_check`
191
+
192
+
Valid values: ``true``, ``false``
193
+
194
+
Whether augeas should perform typechecking. Defaults to false.
0 commit comments