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.
class foo::bar-baz {}
class foo::bar_baz
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')