puppet:// URL without modules/


When using puppet:// URLs, you should ensure that the path starts with modules/ (as the most commonly used mount point in the Puppet fileserver).

What you have done

file { '/etc/apache/apache2.conf':
  source => 'puppet:///apache/etc/apache/apache2.conf',
}

What you should have done:

file { '/etc/apache/apache2.conf':
  source => 'puppet:///modules/apache2/etc/apache/apache2.conf',
}

Disabling the check

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

$ puppet-lint --no-puppet_url_without_modules-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_puppet_url_without_modules')