Module Names Containing A Dash


Support for dashes in class and defined type names differs depending on the release of Puppet you’re running. To ensure compatibility on all versions, you should avoid using dashes.

What you have done

class foo::bar-baz {}

What you should have done:

class foo::bar_baz

Disabling the check

To disable this check you can add --no-names_containing_dash-check to your puppet-lint command line.

$ puppet-lint --no-names_containing_dash-check path/to/file.pp

Alternatively, if you’re calling puppet-lint via the Rake task, you should insert the following line to your Rakefile.

PuppetLint.configuration.send('disable_names_containing_dash')