Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ninech/puppet-lint-global_definition-check
Extends puppet-lint to ensure that your manifests have no global resources and functions.
https://github.com/ninech/puppet-lint-global_definition-check
puppet puppet-lint ruby
Last synced: 3 months ago
JSON representation
Extends puppet-lint to ensure that your manifests have no global resources and functions.
- Host: GitHub
- URL: https://github.com/ninech/puppet-lint-global_definition-check
- Owner: ninech
- Created: 2015-03-02T14:49:13.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-23T09:14:11.000Z (about 1 year ago)
- Last Synced: 2024-09-27T20:02:39.224Z (3 months ago)
- Topics: puppet, puppet-lint, ruby
- Language: Ruby
- Homepage: https://rubygems.org/gems/puppet-lint-global_definition-check
- Size: 24.4 KB
- Stars: 2
- Watchers: 18
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# puppet-lint global definition check
[![rspec](https://github.com/ninech/puppet-lint-global_definition-check/actions/workflows/rspec.yml/badge.svg)](https://github.com/ninech/puppet-lint-global_definition-check/actions/workflows/rspec.yml)
[![Gem Version](https://badge.fury.io/rb/puppet-lint-global_definition-check.svg)](https://badge.fury.io/rb/puppet-lint-global_definition-check)## Installation
To use this plugin, add the following like to the Gemfile in your Puppet code
base and run `bundle install`.```ruby
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
```