Avoid linting and validating Puppet manifests that are not owned by 'jenkins-infra'
This commit is contained in:
parent
ecdb90a564
commit
f5f187cd57
4
Rakefile
4
Rakefile
|
@ -3,11 +3,11 @@ require 'puppetlabs_spec_helper/rake_tasks'
|
|||
|
||||
|
||||
PuppetLint.configuration.send('disable_80chars')
|
||||
PuppetLint.configuration.ignore_paths = ["modules/**/*.pp"]
|
||||
PuppetLint.configuration.ignore_paths = ['modules/**/*.pp', 'spec/fixtures/**/*.pp']
|
||||
|
||||
desc "Validate the Puppet syntax of all manifests"
|
||||
task :validate do
|
||||
Dir['./**/*.pp'].each do |filename|
|
||||
Dir['./{dist,manifests}/**/*.pp'].each do |filename|
|
||||
sh "puppet parser validate '#{filename}'"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue