Name: puppet-lint-reference_on_declaration_outside_of_class-check
Owner: Vox Pupuli
Description: null
Created: 2016-05-01 10:13:02.0
Updated: 2017-01-02 00:48:43.0
Pushed: 2017-01-02 00:51:02.0
Homepage: null
Size: 16
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Note: this plugin will check for references which are declared outside of the class where the reference is used.
To use this plugin, add the following line to the Gemfile
in your Puppet code
base and run bundle install
.
'puppet-lint-reference_on_declaration_outside_of_class-check'
This plugin provides one new check to puppet-lint
.
–fix support: No
This check will raise a warning for any resource reference that is not declared inside the same class.
ass 'foo' {
package { 'foo':
ensure => present,
}
file { '/tmp/foo':
ensure => file,
require => Package['foo2'],
}
and will result in the following warning:
ING: reference on non local resource declaration
–fix support: No
This check will raise a warning for any class reference that is not declared inside the class.
lass 'demo' {
class { 'demo::install': }
include demo::config
Class['demo::install'] -> Class['foobar']
and will result in the following warning:
ING: reference on a foreign class