Socket
Book a DemoInstallSign in
Socket

puppet-lint-roles-profiles

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puppet-lint-roles-profiles

0.0.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

puppet-lint-roles-profiles

This plugin validates that the code base adheres to the roles and profiles workflow[1].

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-profiles'

Usage

roles_include_profiles

--fix-support: No

Will raise a warning if a roles does anything other than include profiles. Resource like class definitions will also raise an error.

WARNING: roles must only include profiles

What you did:

class role::foo {
  class { 'ssh': }

or:

class role::foo {
  class { 'profile::ssh': }
}

What you should have done:

class role::foo {
  include profile::ssh
}

roles_with_params

--fix-support: No

Will raise a warning when a role has class parameters

Warning: roles must not have any parameters

roles_inherits_roles

--fix-support: No

Will raise a warning when a role inherits something other than a role

nodes_include_one_role

--fix-support: No

Will raise a warning when a node definition contains more than one role include (except comments).

References

[1] https://puppet.com/docs/pe/2017.2/r_n_p_full_example.html

FAQs

Package last updated on 07 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.