Commit 8398e9ac authored by Walter Heck's avatar Walter Heck

Make lint more strict

parent f2105afc
Pipeline #331 passed with stages
in 2 minutes and 29 seconds
......@@ -9,10 +9,6 @@ if not ENV['SPEC_OPTS']
ENV['SPEC_OPTS'] = '--format documentation'
end
PuppetLint.configuration.send('disable_documentation')
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.send('disable_140chars')
PuppetSyntax.exclude_paths = [
"vendor/**/*.*",
"modules/**/*.pp",
......@@ -30,6 +26,32 @@ PuppetLint.configuration.ignore_paths = [
Rake::Task[:lint].clear
PuppetLint::RakeTask.new :lint do |config|
config.ignore_paths = PuppetLint.configuration.ignore_paths
# List of checks to disable
config.disable_checks = ['documentation', '140chars']
# Should puppet-lint prefix it's output with the file being checked,
# defaults to true
config.with_filename = true
# Should the task fail if there were any warnings, defaults to false
config.fail_on_warnings = true
# Format string for puppet-lint's output (see the puppet-lint help output
# for details
# config.log_format = '%{filename} - %{message}'
# Print out the context for the problem, defaults to false
config.with_context = true
# Enable automatic fixing of problems, defaults to false
config.fix = false
# Show ignored problems in the output, defaults to false
config.show_ignored = true
# Compare module layout relative to the module root
config.relative = true
end
task :all => [ :validate, :metadata, :lint, :spec ]
......@@ -4,8 +4,8 @@ class opstheater::profile::icinga::client (
$lowercase_fqdn = downcase($::fqdn)
class { '::icinga2':
confd => false,
features => ['checker','mainlog'],
confd => false,
features => ['checker','mainlog'],
}
class { '::icinga2::feature::api':
......@@ -19,11 +19,11 @@ class opstheater::profile::icinga::client (
}
},
zones => {
'ZoneName' => {
'ZoneName' => {
'endpoints' => ['NodeName'],
'parent' => 'opstheater',
},
'opstheater' => {
'opstheater' => {
'endpoints' => ['icinga2.opstheater.vm'],
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment