When defining variables you should only use letters, numbers and underscores. You should specifically not make use of dashes (style guide).
$foo-bar$foo_barTo 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.ppAlternatively, 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')