When defining variables you should only use letters, numbers and underscores. You should specifically not make use of dashes (style guide).
$foo-bar
$foo_bar
To disable this check you can add --no-variable_contains_dash-check
to your
puppet-lint
command line.
$ puppet-lint --no-variable_contains_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_variable_contains_dash')