Skip to content

Commit 63b83b1

Browse files
authored
Merge pull request #345 from chef-partners/ayush/pin-to-chef16
Pin to chef 16 until chef 17 is tested and verified in Azure
2 parents 34d7f0a + 0d38a70 commit 63b83b1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ChefExtensionHandler/bin/chef-install.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function Install-ChefClient {
8383
$chef_package_channel = Get-PublicSettings-From-Config-Json "bootstrap_channel" $powershellVersion
8484

8585
if (-Not $chef_package_version) {
86-
$chef_package_version = "latest"
86+
$chef_package_version = "16" # Until chef-17 is verified
8787
}
8888
if (-Not $chef_package_channel) {
8989
$chef_package_channel = "stable"

ChefExtensionHandler/bin/chef-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ chef_install_from_script(){
7272
curl -L -o /tmp/$platform-install.sh https://omnitruck.chef.io/install.sh
7373
echo "Install.sh script downloaded at /tmp/$platform-install.sh"
7474
if [ -z "$chef_version" ] && [ -z "$chef_channel" ]; then
75-
echo "Installing latest chef client"
76-
sh /tmp/$platform-install.sh
75+
echo "Installing latest chef-16 client"
76+
sh /tmp/$platform-install.sh -v "16" # Until chef-17 is verified
7777
elif [ ! -z "$chef_version" ] && [ -z "$chef_channel" ]; then
7878
echo "Installing chef client version $chef_version"
7979
sh /tmp/$platform-install.sh -v $chef_version

azure-chef-extension.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
1818
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
1919
s.require_paths = ["lib", "spec"]
2020

21-
s.add_development_dependency "chef"
21+
s.add_development_dependency "chef", '<= 16.13.16'
2222
s.add_development_dependency 'rubyzip', '>= 1.0.0'
2323
s.add_development_dependency 'nokogiri'
2424

0 commit comments

Comments
 (0)