No description, website, or topics provided.
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/puppet-lint/plugins
spec
.gitignore
Gemfile
README.md
Rakefile
puppet-lint-roles_and_profiles-check.gemspec

README.md

puppet-lint roles and profiles check

Adds a new puppet-lint plugin to verify that your code matches Roles & Profiles paradigm. This plugin assumes that your role classes starts with ̀rolesand your profiles classes starts with profiles.

Installation

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

gem 'puppet-lint-roles_and_profiles-check'

Usage

This plugin provides new checks to puppet-lint.

node_definition

--fix support: No

This check will raise a warning if your node definition does not contain only a role declaration.

WARNING: expected only one role declaration

roles_class_params

--fix support: No

This check will raise a warning for any parameter in your role definition.

WARNING: expected no class parameters

roles_resource_declaration

--fix-support: No

This check will raise a warning for any resource declaration in you role defintion that is not a profile class.

WARNING: expected no resource declaration