Unquoted File Modes


File modes should be specified as single-quoted strings instead of bare word numbers (style guide).

What you have done

file { '/tmp/foo':
  mode => 0666,
}

What you should have done

file { '/tmp/foo':
  mode => '0666',
}

Disabling the check

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')