https://github.com/dadav/puppet-lint-contained_classes-check
A plugin that checks if every class resource is contained.
https://github.com/dadav/puppet-lint-contained_classes-check
Last synced: about 1 year ago
JSON representation
A plugin that checks if every class resource is contained.
- Host: GitHub
- URL: https://github.com/dadav/puppet-lint-contained_classes-check
- Owner: dadav
- License: apache-2.0
- Created: 2020-08-04T20:04:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-05T06:30:19.000Z (almost 6 years ago)
- Last Synced: 2025-02-06T16:57:56.230Z (over 1 year ago)
- Language: Ruby
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
puppet-contained-classes-check
=================================
A puppet-lint plugin to check that you contain your ressource-like created classes.
## Checks
### Class containment
If you don't contain the classes, they will run out of order and mess with your profiles.
#### What you have done
```puppet
class { 'apache':
ensure => present,
}
```
#### What you should have done
```puppet
class { 'apache':
ensure => present,
}
contain apache
```
#### Disabling the check
To disable this check, you can add `--no-contained-classes-check` to your puppet-lint command line.
```shell
$ puppet-lint --no-contained_classes-check path/to/file.pp
```
Alternatively, if you’re calling puppet-lint via the Rake task, you should insert the following line to your `Rakefile`.
```ruby
PuppetLint.configuration.send('disable_contained_classes')
```