diff --git a/.rubocop.yml b/.rubocop.yml index 4f81136..2a6481f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -17,3 +17,9 @@ LeadingCommentSpace: LineLength: Enabled: false + +Style/FileName: + Exclude: + - 'Berksfile' + - 'Gemfile' + - 'Vagrantfile' diff --git a/.ruby-version b/.ruby-version index a831048..829664e 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -ruby-2.3.0 +ruby-2.3.5 diff --git a/.travis.yml b/.travis.yml index 2d32be3..fafb7e7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: ruby rvm: - - 2.3.0 + - 2.3.5 sudo: required services: docker diff --git a/Berksfile b/Berksfile index d0a8214..829f25d 100644 --- a/Berksfile +++ b/Berksfile @@ -1,14 +1,17 @@ +# frozen_string_literal: true + source 'https://supermarket.chef.io/' metadata group :vagrant do - cookbook 'ark', '= 2.2.1' - cookbook 'apt' - cookbook 'apache2' - cookbook 'elasticsearch', '~ 2.4.0' - cookbook 'java' - cookbook 'ohai' - cookbook 'netstat' - cookbook 'chef_nginx', '~ 2.9.0' + cookbook 'ark', '>= 2.2.1' + cookbook 'apt' + cookbook 'apache2' + cookbook 'build-essential' + cookbook 'elasticsearch', '~ 2.4.0' + cookbook 'java' + cookbook 'netstat' + cookbook 'ohai' + cookbook 'chef_nginx', '~ 2.9.0' end diff --git a/CHANGELOG.md b/CHANGELOG.md index 981ff98..31b4644 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.2.2: +* Update to fix travis runs for CentOS7 and Ubuntu 16.04. #102 (@drenalin23) +* Update `ark` #103 (@drenalin23) +* `kibana_plugin` resource to manage plugins #106 (@InformatiQ) +* Kibana5, Amazon Linux fixes #107 (@InformatiQ) +* switch `node['kibana']['version']` to integer #109 (@InformatiQ) +* Lint fixes #104 (@drenalin23) + ## 0.2.1: * fix issue with bin_path for package installs (@drenalin23) * update the nginx source attribute so it is easier to override in wrapper cookbooks (@drenalin23) diff --git a/Gemfile b/Gemfile index 2a64e3a..02830fd 100644 --- a/Gemfile +++ b/Gemfile @@ -1,15 +1,17 @@ +# frozen_string_literal: true + source 'https://rubygems.org' gem 'berkshelf' gem 'stove' group :test do - gem 'rake' - gem 'test-kitchen' + gem 'buff-extensions' + gem 'chefspec' gem 'foodcritic' + gem 'rake' gem 'rubocop' - gem 'chefspec' - gem 'buff-extensions' + gem 'test-kitchen' end group :vagrant do @@ -17,9 +19,9 @@ group :vagrant do end group :development do - gem 'knife-cookbook-doc' gem 'kitchen-openstack' gem 'kitchen-transport-rsync' + gem 'knife-cookbook-doc' end group :integration_docker do diff --git a/README.md b/README.md index 5f4bb2f..a0f4e88 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Kibana requires ElasticSearch index to be configured to work as per logstash req ## Platform: -* Ubuntu 12.04, 14.04. +* Ubuntu 14.04, 16.04 * CentOS 6, 7 ## Cookbooks: @@ -33,7 +33,7 @@ Kibana requires ElasticSearch index to be configured to work as per logstash req * `node['kibana']['base_dir']` - The base directory of kibana. Defaults to `/opt/kibana`. * `node['kibana']['user']` - The user under which Kibana is installed. Defaults to `kibana`. * `node['kibana']['group']` - The group under which Kibana is installed. Defaults to `kibana`. -* `node['kibana']['install_method']` - Install method. Can be source or release. Defaults to `release`. +* `node['kibana']['install_method']` - Install method. Can be `package` or `release`. Defaults to `release`. * `node['kibana']['url']` - Url of tarball. Defaults to `https://download.elasticsearch.org/kibana/kibana/kibana-#{node['kibana']['kibana3_version']}.tar.gz`. * `node['kibana']['kibana3_checksum']` - Checksum of the tarball. * `node['kibana']['kibana4_checksum']` - Checksum of the tarball. @@ -81,6 +81,7 @@ Kibana requires ElasticSearch index to be configured to work as per logstash req * [kibana::default](#kibanadefault) - Install Kibana. * kibana::kibana3 * kibana::kibana4 +* kibana::kibana5 * kibana::nginx ## kibana::apache @@ -139,6 +140,6 @@ end # License and Maintainers -Maintainers:: Peter Donald (), Dimitry Ryobryshkin (@cyberflow), Scott Nelson Windels () +Maintainers:: Peter Donald (), Dimitry Ryobryshkin (@cyberflow), Scott Nelson Windels (), Michael Burns (@mburns) License:: Apache 2.0 diff --git a/Rakefile b/Rakefile index 72617a9..8348bb9 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,3 @@ -# Encoding: utf-8 # frozen_string_literal: true require 'rake' @@ -6,6 +5,7 @@ require 'rake/testtask' require 'rspec/core/rake_task' require 'rubocop/rake_task' require 'bundler/setup' +require 'foodcritic' require 'stove/rake_task' Stove::RakeTask.new @@ -15,9 +15,14 @@ RuboCop::RakeTask.new(:rubocop) do |task| task.fail_on_error = true end -desc 'Foodcritic linter' -task :foodcritic do - sh 'foodcritic -f any -t ~FC007 .' +FoodCritic::Rake::LintTask.new do |t| + t.options = { + fail_tags: ['any'], + tags: [ + '~FC007', # Don't reflect recipe dependencies + '~FC071' # Don't require LICENSE file + ] + } end desc 'Run Test Kitchen integration tests' @@ -50,4 +55,4 @@ RSpec::Core::RakeTask.new(:unit) do |t| t.pattern = 'test/unit/spec/*_spec.rb' end -task default: [:rubocop, :foodcritic, :unit] +task default: %i[rubocop foodcritic unit] diff --git a/Vagrantfile b/Vagrantfile index 5252ca3..1afdaba 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,27 +1,29 @@ +# frozen_string_literal: true + # -*- mode: ruby -*- # vi: set ft=ruby : -Vagrant.configure("2") do |config| +Vagrant.configure('2') do |config| # All Vagrant configuration is done here. The most common configuration # options are documented and commented below. For a complete reference, # please see the online documentation at vagrantup.com. - config.vm.hostname = "kibana" + config.vm.hostname = 'kibana' # Every Vagrant virtual environment requires a box to build off of. - config.vm.box = "opscode-precise64" + config.vm.box = 'opscode-precise64' # The url from where the 'config.vm.box' box will be fetched if it # doesn't already exist on the user's system. - config.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box" + config.vm.box_url = 'https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box' - config.omnibus.chef_version = '11.6.2' + config.omnibus.chef_version = '12.7.2' # Assign this VM to a host-only network IP, allowing you to access it # via the IP. Host-only networks can talk to the host machine as well as # any other machines on the same network, but cannot be accessed (through this # network interface) by any external networks. - config.vm.network :private_network, ip: "33.33.33.10" + config.vm.network :private_network, ip: '33.33.33.10' # Create a public network, which generally matched to bridged network. # Bridged networks make the machine appear as another physical device on @@ -57,7 +59,7 @@ Vagrant.configure("2") do |config| # information on available options. # The path to the Berksfile to use with Vagrant Berkshelf - config.berkshelf.berksfile_path = "./Berksfile" + config.berkshelf.berksfile_path = './Berksfile' # Enabling the Berkshelf plugin. To enable this globally, add this configuration # option to your ~/.vagrant.d/Vagrantfile file @@ -73,17 +75,17 @@ Vagrant.configure("2") do |config| config.vm.provision :chef_solo do |chef| chef.json = { - "kibana" => { - "apache" => { - "basic_auth" => 'on' + 'kibana' => { + 'apache' => { + 'basic_auth' => 'on' } } } chef.run_list = [ - "recipe[apt::default]", - "recipe[kibana::default]", - "recipe[kibana::apache]" + 'recipe[apt::default]', + 'recipe[kibana::default]', + 'recipe[kibana::apache]' ] end end diff --git a/attributes/default.rb b/attributes/default.rb index 008d8e9..1aa54e6 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -1,4 +1,3 @@ -# Encoding: utf-8 # frozen_string_literal: true #<> Kibana major version @@ -7,7 +6,7 @@ #<> Kibana3 exact version default['kibana']['kibana3_version'] = '3.1.2' default['kibana']['kibana3_checksum'] = '480562733c2c941525bfa26326b6fae5faf83109b452a6c4e283a5c37e3086ee' -default['kibana']['kibana3_url'] = 'https://download.elastic.co/kibana/kibana/kibana-3.1.2.tar.gz' +default['kibana']['kibana3_url'] = "https://download.elastic.co/kibana/kibana/kibana-#{node['kibana']['kibana3_version']}.tar.gz" #<> Kibana4 exact version default['kibana']['kibana4_version'] = '4.6.6' diff --git a/libraries/version.rb b/libraries/version.rb index ded4b66..64c2f5e 100644 --- a/libraries/version.rb +++ b/libraries/version.rb @@ -1,4 +1,3 @@ -# Encoding: utf-8 # frozen_string_literal: true class Kibana diff --git a/metadata.rb b/metadata.rb index 55898f2..2a123ac 100644 --- a/metadata.rb +++ b/metadata.rb @@ -1,18 +1,20 @@ -# Encoding: utf-8 # frozen_string_literal: true name 'kibana' maintainer 'Peter Donald' maintainer_email 'peter@realityforge.org' -license 'Apache 2.0' +license 'Apache-2.0' description 'Installs/Configures kibana, the logstash UI' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '0.2.1' +version '0.2.2' source_url 'https://github.com/realityforge/chef-kibana' issues_url 'https://github.com/realityforge/chef-kibana/issues' +chef_version '>= 12' if respond_to?(:chef_version) + supports 'ubuntu' supports 'debian' +supports 'centos' depends 'build-essential' depends 'ark' diff --git a/recipes/_service.rb b/recipes/_service.rb index e9716a4..cb0cb01 100644 --- a/recipes/_service.rb +++ b/recipes/_service.rb @@ -1,4 +1,3 @@ -# Encoding: utf-8 # frozen_string_literal: true template node['kibana']['service']['template_file'] do @@ -17,5 +16,5 @@ service 'kibana' do provider node['kibana']['service']['provider'] supports start: true, restart: true, stop: true, status: true - action [:enable, :start] + action %i[enable start] end diff --git a/recipes/apache.rb b/recipes/apache.rb index 06f603f..bd76d19 100644 --- a/recipes/apache.rb +++ b/recipes/apache.rb @@ -1,4 +1,3 @@ -# Encoding: utf-8 # frozen_string_literal: true =begin diff --git a/recipes/default.rb b/recipes/default.rb index 54f5109..53c37b1 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -1,4 +1,3 @@ -# Encoding: utf-8 # frozen_string_literal: true =begin diff --git a/recipes/kibana3.rb b/recipes/kibana3.rb index a549aee..aa34c7e 100644 --- a/recipes/kibana3.rb +++ b/recipes/kibana3.rb @@ -1,4 +1,3 @@ -# Encoding: utf-8 # frozen_string_literal: true include_recipe 'kibana' diff --git a/recipes/kibana4.rb b/recipes/kibana4.rb index a011cd5..7406067 100644 --- a/recipes/kibana4.rb +++ b/recipes/kibana4.rb @@ -1,4 +1,3 @@ -# Encoding: utf-8 # frozen_string_literal: true include_recipe 'kibana' @@ -15,11 +14,11 @@ config_path = 'current/config/kibana.yml' elsif node['kibana']['install_method'] == 'package' node.default['kibana']['service']['bin_path'] = 'bin' - if node.platform_family? 'debian' + if platform_family? 'debian' apt_repository 'kibana' do uri node['kibana']['repository_url'] distribution '' - components %w(stable main) + components %w[stable main] key node['kibana']['repository_key'] end else diff --git a/recipes/kibana5.rb b/recipes/kibana5.rb index f277873..8e30dfb 100644 --- a/recipes/kibana5.rb +++ b/recipes/kibana5.rb @@ -1,4 +1,4 @@ -# Encoding: utf-8 +# frozen_string_literal: true include_recipe 'kibana' @@ -14,11 +14,11 @@ config_path = 'current/config/kibana.yml' elsif node['kibana']['install_method'] == 'package' node.default['kibana']['service']['bin_path'] = 'bin' - if node.platform_family? 'debian' + if platform_family? 'debian' apt_repository 'kibana' do uri node['kibana']['repository_url'] distribution '' - components %w(stable main) + components %w[stable main] key node['kibana']['repository_key'] end else diff --git a/recipes/nginx.rb b/recipes/nginx.rb index 9e7e625..a461d7d 100644 --- a/recipes/nginx.rb +++ b/recipes/nginx.rb @@ -1,5 +1,5 @@ -# Encoding: utf-8 # frozen_string_literal: true + include_recipe 'chef_nginx' template File.join(node['nginx']['dir'], 'sites-available', 'kibana') do diff --git a/resources/plugin.rb b/resources/plugin.rb index 3c1d287..8312c9d 100644 --- a/resources/plugin.rb +++ b/resources/plugin.rb @@ -1,6 +1,7 @@ +# frozen_string_literal: true + resource_name :kibana_plugin -property :name, String, name_property: true property :url, String property :kibana_home, String, default: ::File.join(node['kibana']['base_dir'], 'current') property :plugins_registry, String, default: ::File.join(node['kibana']['base_dir'], 'installedPugins.json') @@ -17,7 +18,7 @@ def plugin_exists?(name) list_arg = node['kibana']['version'] > 4 ? 'bin/kibana-plugin list' : 'bin/kibana plugin -l' - cmd_line = "#{list_arg}" + cmd_line = list_arg.to_s cmd = Mixlib::ShellOut.new(cmd_line, cwd: kibana_home) cmd.run_command cmd.stdout.include? name @@ -36,7 +37,7 @@ def update_plugin_reg(action) action :install do install_arg = node['kibana']['version'] > 4 ? "bin/kibana-plugin install #{url}" : "bin/kibana plugin -i #{name} -u #{url}" - plugin_install = "#{install_arg}" + plugin_install = install_arg.to_s execute 'plugin-install' do cwd kibana_home command plugin_install @@ -47,7 +48,7 @@ def update_plugin_reg(action) action :remove do remove_arg = node['kibana']['version'] > 4 ? "bin/kibana-plugin remove #{name}" : "bin/kibana plugin --remove #{name}" - plugin_remove = "#{remove_arg}" + plugin_remove = remove_arg.to_s execute 'plugin-remove' do cwd kibana_home command plugin_remove diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb index c7907f0..33994ae 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # matcher for install_ark def install_ark(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:ark, :install, resource_name) diff --git a/test/integration/kibana3_apache/serverspec/default_spec.rb b/test/integration/kibana3_apache/serverspec/default_spec.rb index db8e2cb..d313e61 100644 --- a/test/integration/kibana3_apache/serverspec/default_spec.rb +++ b/test/integration/kibana3_apache/serverspec/default_spec.rb @@ -1,5 +1,5 @@ -# Encoding: utf-8 # frozen_string_literal: true + require 'spec_helper' describe 'kibana' do diff --git a/test/integration/kibana3_apache/serverspec/spec_helper.rb b/test/integration/kibana3_apache/serverspec/spec_helper.rb index be8d94d..9998d11 100644 --- a/test/integration/kibana3_apache/serverspec/spec_helper.rb +++ b/test/integration/kibana3_apache/serverspec/spec_helper.rb @@ -1,5 +1,5 @@ -# Encoding: utf-8 # frozen_string_literal: true + require 'serverspec' # Required by serverspec diff --git a/test/integration/kibana3_nginx/serverspec/default_spec.rb b/test/integration/kibana3_nginx/serverspec/default_spec.rb index bac028a..1d3f94a 100644 --- a/test/integration/kibana3_nginx/serverspec/default_spec.rb +++ b/test/integration/kibana3_nginx/serverspec/default_spec.rb @@ -1,5 +1,5 @@ -# Encoding: utf-8 # frozen_string_literal: true + require 'spec_helper' describe 'kibana' do diff --git a/test/integration/kibana3_nginx/serverspec/spec_helper.rb b/test/integration/kibana3_nginx/serverspec/spec_helper.rb index be8d94d..9998d11 100644 --- a/test/integration/kibana3_nginx/serverspec/spec_helper.rb +++ b/test/integration/kibana3_nginx/serverspec/spec_helper.rb @@ -1,5 +1,5 @@ -# Encoding: utf-8 # frozen_string_literal: true + require 'serverspec' # Required by serverspec diff --git a/test/integration/kibana3_source/serverspec/default_spec.rb b/test/integration/kibana3_source/serverspec/default_spec.rb index 7846844..8c634ce 100644 --- a/test/integration/kibana3_source/serverspec/default_spec.rb +++ b/test/integration/kibana3_source/serverspec/default_spec.rb @@ -1,5 +1,5 @@ -# Encoding: utf-8 # frozen_string_literal: true + require 'spec_helper' describe 'kibana' do diff --git a/test/integration/kibana3_source/serverspec/spec_helper.rb b/test/integration/kibana3_source/serverspec/spec_helper.rb index be8d94d..9998d11 100644 --- a/test/integration/kibana3_source/serverspec/spec_helper.rb +++ b/test/integration/kibana3_source/serverspec/spec_helper.rb @@ -1,5 +1,5 @@ -# Encoding: utf-8 # frozen_string_literal: true + require 'serverspec' # Required by serverspec diff --git a/test/integration/kibana4_apache/serverspec/default_spec.rb b/test/integration/kibana4_apache/serverspec/default_spec.rb index 51e84f8..7e04daf 100644 --- a/test/integration/kibana4_apache/serverspec/default_spec.rb +++ b/test/integration/kibana4_apache/serverspec/default_spec.rb @@ -1,5 +1,5 @@ -# Encoding: utf-8 # frozen_string_literal: true + require 'spec_helper' describe 'kibana' do diff --git a/test/integration/kibana4_apache/serverspec/spec_helper.rb b/test/integration/kibana4_apache/serverspec/spec_helper.rb index be8d94d..9998d11 100644 --- a/test/integration/kibana4_apache/serverspec/spec_helper.rb +++ b/test/integration/kibana4_apache/serverspec/spec_helper.rb @@ -1,5 +1,5 @@ -# Encoding: utf-8 # frozen_string_literal: true + require 'serverspec' # Required by serverspec diff --git a/test/integration/kibana4_nginx/serverspec/default_spec.rb b/test/integration/kibana4_nginx/serverspec/default_spec.rb index 21964d2..16936fe 100644 --- a/test/integration/kibana4_nginx/serverspec/default_spec.rb +++ b/test/integration/kibana4_nginx/serverspec/default_spec.rb @@ -1,5 +1,5 @@ -# Encoding: utf-8 # frozen_string_literal: true + require 'spec_helper' describe 'kibana' do diff --git a/test/integration/kibana4_nginx/serverspec/spec_helper.rb b/test/integration/kibana4_nginx/serverspec/spec_helper.rb index be8d94d..9998d11 100644 --- a/test/integration/kibana4_nginx/serverspec/spec_helper.rb +++ b/test/integration/kibana4_nginx/serverspec/spec_helper.rb @@ -1,5 +1,5 @@ -# Encoding: utf-8 # frozen_string_literal: true + require 'serverspec' # Required by serverspec diff --git a/test/unit/spec/_service_spec.rb b/test/unit/spec/_service_spec.rb index 70ad269..ea68470 100644 --- a/test/unit/spec/_service_spec.rb +++ b/test/unit/spec/_service_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require 'chefspec' require_relative 'spec_helper' @@ -38,10 +39,10 @@ describe 'kibana::_service' do before { stub_resources } let(:chef_run) { ChefSpec::SoloRunner.new(CENTOS_OPTS).converge(described_recipe) } - let(:template) { chef_run.template('/etc/init.d/kibana') } + let(:template) { chef_run.template('/usr/lib/systemd/system/kibana.service') } - it 'creates an init.d template at /etc/init.d/kibana' do - expect(chef_run).to create_template('/etc/init.d/kibana') + it 'creates an init.d template at /usr/lib/systemd/system/kibana.service' do + expect(chef_run).to create_template('/usr/lib/systemd/system/kibana.service') end it 'enables a kibana service' do expect(chef_run).to enable_service('kibana') diff --git a/test/unit/spec/apache_spec.rb b/test/unit/spec/apache_spec.rb index 60ded7b..7e41d63 100644 --- a/test/unit/spec/apache_spec.rb +++ b/test/unit/spec/apache_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require 'chefspec' require_relative 'spec_helper' @@ -9,4 +10,8 @@ # TODO: creates a template /etc/apache2/htpasswd # TODO: creates a template /etc/apache2/sites-available/kibana.conf + + it 'converges successfully' do + expect { :chef_run }.to_not raise_error + end end diff --git a/test/unit/spec/default_spec.rb b/test/unit/spec/default_spec.rb index c37acca..6b6622d 100644 --- a/test/unit/spec/default_spec.rb +++ b/test/unit/spec/default_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require 'chefspec' require_relative 'spec_helper' diff --git a/test/unit/spec/kibana3_spec.rb b/test/unit/spec/kibana3_spec.rb index d3b5b66..150d36c 100644 --- a/test/unit/spec/kibana3_spec.rb +++ b/test/unit/spec/kibana3_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require 'chefspec' require_relative 'spec_helper' diff --git a/test/unit/spec/kibana4_spec.rb b/test/unit/spec/kibana4_spec.rb index 518e56e..48cfb14 100644 --- a/test/unit/spec/kibana4_spec.rb +++ b/test/unit/spec/kibana4_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require 'chefspec' require_relative 'spec_helper' @@ -7,7 +8,8 @@ let(:chef_run) do ChefSpec::SoloRunner.new(UBUNTU_OPTS) do |node| - node.default['kibana']['install_method'] = 'release' + node.override['kibana']['version'] = 4 + node.override['kibana']['install_method'] = 'release' end.converge(described_recipe, 'kibana::_service') end let(:template) { chef_run.template('/opt/kibana/current/config/kibana.yml') } diff --git a/test/unit/spec/nginx_spec.rb b/test/unit/spec/nginx_spec.rb index 1f08c04..79b9194 100644 --- a/test/unit/spec/nginx_spec.rb +++ b/test/unit/spec/nginx_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require 'chefspec' require_relative 'spec_helper' @@ -6,4 +7,8 @@ before { stub_resources } let(:chef_run) { ChefSpec::SoloRunner.new(UBUNTU_OPTS).converge(described_recipe) } + + it 'converges successfully' do + expect { :chef_run }.to_not raise_error + end end diff --git a/test/unit/spec/spec_helper.rb b/test/unit/spec/spec_helper.rb index add724f..4379f96 100644 --- a/test/unit/spec/spec_helper.rb +++ b/test/unit/spec/spec_helper.rb @@ -1,5 +1,5 @@ -# encoding: UTF-8 # frozen_string_literal: true + # -*- mode: ruby -*- # vi: set ft=ruby : @@ -21,11 +21,11 @@ }.freeze ::CENTOS_OPTS = { platform: 'centos', - version: '6.0' + version: '6.9' }.freeze ::CENTOS7_OPTS = { platform: 'centos', - version: '7.0' + version: '7.4.1708' }.freeze def stub_resources; end