Unquoted Resource Titles


All resource titles should be quoted (style guide).

What you have done

service { apache:
  ensure => running,
}

What you should have done:

service { 'apache':
  ensure => running,
}

Disabling the check

To disable this check you can add --no-unquoted_resource_title-check to your puppet-lint command line.

$ puppet-lint --no-unquoted_resource_title-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_resource_title')