From 015b3c20af69e97054dc9ece33184838b81523b2 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Sat, 6 May 2017 11:49:14 -0700 Subject: [PATCH] Defined needed gems and set to install locally --- bin/puppet/.bundle/config | 4 ++++ bin/puppet/Gemfile | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 bin/puppet/.bundle/config create mode 100644 bin/puppet/Gemfile diff --git a/bin/puppet/.bundle/config b/bin/puppet/.bundle/config new file mode 100644 index 0000000..4398f63 --- /dev/null +++ b/bin/puppet/.bundle/config @@ -0,0 +1,4 @@ +--- +BUNDLE_JOBS: "3" +BUNDLE_PATH: "vendor/bundle" +BUNDLE_DISABLE_SHARED_GEMS: "true" diff --git a/bin/puppet/Gemfile b/bin/puppet/Gemfile new file mode 100644 index 0000000..1b5d95a --- /dev/null +++ b/bin/puppet/Gemfile @@ -0,0 +1,38 @@ +# vim:ft=ruby +source 'https://rubygems.org' + +if ENV.key?('PUPPET_VERSION') + puppetversion = "#{ENV['PUPPET_VERSION']}" +else + puppetversion = ['~> 4.0'] +end + +group :development, :unit_tests do + if RUBY_VERSION < '2.0' + gem 'json', '1.8.3' + gem 'json_pure', '1.8.3' + else + gem 'json', '>= 2.0.2' + gem 'json_pure', '>= 2.0.2' + end + + gem 'metadata-json-lint', '~> 1.0' + gem 'puppet', puppetversion + gem 'puppetlabs_spec_helper', '~> 1.1' + gem 'rspec-puppet', '~> 2.5' + gem 'yamllint', '~> 0.0.9' + + # puppet-lint and plugins + gem 'puppet-lint', '~> 1.1' + gem 'puppet-lint-absolute_classname-check', '~> 0.2' + gem 'puppet-lint-absolute_template_path', '~> 1.0' + gem 'puppet-lint-empty_string-check', '~> 0.2' + gem 'puppet-lint-leading_zero-check', '~> 0.1' + gem 'puppet-lint-resource_reference_syntax', '~> 1.0' + gem 'puppet-lint-spaceship_operator_without_tag-check', '~> 0.1' + gem 'puppet-lint-trailing_newline-check', '~> 1.0' + gem 'puppet-lint-undef_in_function-check', '~> 0.2' + gem 'puppet-lint-unquoted_string-check', '~> 0.3' + gem 'puppet-lint-variable_contains_upcase', '~> 1.1' +end +