File modes should be specified as single-quoted strings instead of bare word numbers (style guide).
file { '/tmp/foo':
mode => 0666,
}
file { '/tmp/foo':
mode => '0666',
}
To disable this check you can add --no-unquoted_file_mode-check
to your
puppet-lint
command line.
$ puppet-lint --no-unquoted_file_mode-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_unquoted_file_mode')