Overview

This linter will convert from legacy facts like $::nine_location or legacy hashed facts like $facts['nine_location'] to the new structured facts like $facts['nine_metadata']['location'].

Installing

From the command line

$ gem install puppet-lint-nine-check

In a Gemfile

gem 'puppet-lint-nine-check', :require => false

Disabling the check

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

$ puppet-lint --no-nine 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_nine')

Alternatively, you can disable it directly in your puppet manifest.

# lint:ignore:nine
$package_name = $facts['operatingsystem'] {
  'CentOS' => 'httpd',
  'Debian' => 'apache2',
}
# lint:endignore