Skip to content

Extends puppet-lint to ensure that your manifests have no global resources and functions.

Notifications You must be signed in to change notification settings

ninech/puppet-lint-global_definition-check

Repository files navigation

puppet-lint global definition check

rspec Gem Version

Installation

To use this plugin, add the following like to the Gemfile in your Puppet code base and run bundle install.

gem "puppet-lint-global_definition-check"

Usage

This plugin provides a new check to puppet-lint.

global_resource

--fix support: No

This check will raise a error for any global resource.

ERROR: resource file in global space on line 19

global_function

--fix support: No

This check will raise a error for any global function.

ERROR: token ensure_resouce in global space on line 19