From 32c633f5a5576483b1f9c96b14fe41e8ae93edea Mon Sep 17 00:00:00 2001 From: Garrett Honeycutt Date: Tue, 15 Dec 2015 16:10:04 -0500 Subject: [PATCH] Use community puppet-lint plugins and conform code to them --- Gemfile | 12 ++++++++++++ manifests/init.pp | 2 +- tests/init.pp | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 42f4f66..d25efe1 100644 --- a/Gemfile +++ b/Gemfile @@ -11,6 +11,18 @@ gem 'puppetlabs_spec_helper', '>= 0.1.0' gem 'puppet-lint', '>= 1.0.0' gem 'facter', '>= 1.7.0' gem 'rspec-puppet', '~> 2.0' +gem 'puppet-lint-absolute_classname-check' +gem 'puppet-lint-alias-check' +gem 'puppet-lint-empty_string-check' +gem 'puppet-lint-file_ensure-check' +gem 'puppet-lint-file_source_rights-check' +gem 'puppet-lint-fileserver-check' +gem 'puppet-lint-leading_zero-check' +gem 'puppet-lint-spaceship_operator_without_tag-check' +gem 'puppet-lint-trailing_comma-check' +gem 'puppet-lint-undef_in_function-check' +gem 'puppet-lint-unquoted_string-check' +gem 'puppet-lint-variable_contains_upcase' # rspec must be v2 for ruby 1.8.7 if RUBY_VERSION >= '1.8.7' and RUBY_VERSION < '1.9' diff --git a/manifests/init.pp b/manifests/init.pp index 2e382ba..b06219f 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -689,7 +689,7 @@ class ssh ( if $manage_root_ssh_config_real == true { - include common + include ::common common::mkdir_p { "${::root_home}/.ssh": } diff --git a/tests/init.pp b/tests/init.pp index 13a4638..ea1c831 100644 --- a/tests/init.pp +++ b/tests/init.pp @@ -1 +1 @@ -include ssh +include ::ssh