This change adds syntax checking and lint tests for the Puppet manifests located in deployment_scripts/puppet/manifests. Change-Id: I943913ab56338e6cc64ec4cf07dae46d237d2f6c
14 lines
397 B
Ruby
14 lines
397 B
Ruby
require 'puppet-lint/tasks/puppet-lint'
|
|
require 'puppet-syntax/tasks/puppet-syntax'
|
|
|
|
PuppetLint.configuration.fail_on_warnings = true
|
|
PuppetLint.configuration.send('disable_80chars')
|
|
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
|
|
PuppetLint.configuration.send('disable_class_parameter_defaults')
|
|
|
|
desc "Run lint, and syntax tests."
|
|
task :test => [
|
|
:lint,
|
|
:syntax,
|
|
]
|