diff --git a/CHANGELOG.md b/CHANGELOG.md index c86cf0d..f8cfa0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [3.0.1] - 2024-03-22 + +* Removed dependency on yum and apt, they're not required. +* Added version into the Windows package resource, to stop repeated installations. + ## [3.0.0] - 2020-05-06 * update minimum required chef version to 15.0 (BREAKING CHANGE) diff --git a/Gemfile b/Gemfile index 8ea69d3..a9f41a6 100644 --- a/Gemfile +++ b/Gemfile @@ -11,7 +11,6 @@ gem 'test-kitchen' group :development do gem 'chefspec' gem 'cookstyle' - gem 'foodcritic' gem 'guard' gem 'guard-foodcritic' gem 'guard-rspec' diff --git a/metadata.rb b/metadata.rb index 709611a..da9004f 100644 --- a/metadata.rb +++ b/metadata.rb @@ -3,7 +3,7 @@ maintainer_email 'opensource@tecracer.de' license 'Apache-2.0' description 'Installs/Configures vmware-tools' -version '3.0.0' +version '3.0.1' chef_version '>= 15.0' @@ -15,10 +15,6 @@ # gets a `View Source` link source_url 'https://github.com/tecracer-chef-cookbooks/vmware-tools' -# Dependencies -depends 'apt' -depends 'yum' - # Supported OS supports 'amazon' supports 'centos', '>= 6.0' diff --git a/recipes/_windows.rb b/recipes/_windows.rb index 67b649f..520d8c7 100644 --- a/recipes/_windows.rb +++ b/recipes/_windows.rb @@ -15,6 +15,7 @@ installer_type :custom options '/s /v"/qn REBOOT=R"' returns [0, 1618, 1641, 3010] + version node['vmware-tools']['version'].sub('-', '.') action :install end @@ -24,6 +25,7 @@ installer_type :custom options '/s /v"/qn REBOOT=R"' returns [0, 1618, 1641, 3010] + version node['vmware-tools']['version'].sub('-', '.') action :install notifies :reboot_now, 'reboot[Restart Computer]', :immediately end diff --git a/test/integration/default/default_spec.rb b/test/integration/default/default_spec.rb index fc6c70e..db7b2fc 100644 --- a/test/integration/default/default_spec.rb +++ b/test/integration/default/default_spec.rb @@ -1,4 +1,3 @@ -# encoding: utf-8 # # Cookbook:: vmware-tools # Spec:: default