29be2f2e4d
v0.3.1 sha1: 71486f47598a397ee5c8e68b3cddc10dce86d0c4 Implements: blueprint merge-openstack-puppet-modules Change-Id: Ic050594a2aae82076a321c6298cc5e7f541d4884
13 lines
405 B
Ruby
13 lines
405 B
Ruby
require 'rubygems'
|
|
require 'puppetlabs_spec_helper/rake_tasks'
|
|
require 'puppet-lint/tasks/puppet-lint'
|
|
PuppetLint.configuration.send('disable_80chars')
|
|
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
|
|
|
|
desc "Run puppet in noop mode and check for syntax errors."
|
|
task :validate do
|
|
Dir['manifests/**/*.pp'].each do |path|
|
|
sh "puppet parser validate --noop #{path}"
|
|
end
|
|
end
|