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
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,8 @@ To instruct Lint to automatically fix any issues that it detects, use the `--fix
41
41
puppet-lint --fix /modules
42
42
```
43
43
44
+
Note: The auto-fix functionality is available for Puppet manifest files only.
45
+
44
46
### Modify which checks to run
45
47
46
48
Puppet Lint options allow you to modify which checks to run. You can disable any of the checks temporarily or permanently, or you can limit testing to specific checks.
@@ -245,6 +247,23 @@ See `puppet-lint --help` for a full list of command line options and checks.
245
247
246
248
For a complete list of checks, and how to resolve errors on each check, see the Puppet Lint [checks](http://puppet-lint.com/checks/) page.
247
249
250
+
### YAML Checks
251
+
252
+
Puppet Lint can check Hiera YAML files for legacy facts.
253
+
254
+
For example, the following YAML would trigger warnings:
255
+
256
+
```yaml
257
+
hierarchy:
258
+
- name: "Legacy Facts Example"
259
+
paths:
260
+
- "os/%{facts.hostname}.yaml"
261
+
- "/var/www/%{::hostname}.yaml"
262
+
- "%{::bios_vendor}.yaml"
263
+
```
264
+
265
+
Refer to the [Puppet Core Facts documentation](https://www.puppet.com/docs/puppet/8/core_facts.html) for a complete list of available core facts.
0 commit comments