降级厨师客户端版本11

问题描述 投票:2回答:2

正在尝试降级chef-client。附上摘要:

$ chef-client --version
Chef: 11.10.4

$ curl -sL https://www.opscode.com/chef/install.sh | sudo bash -s -- -v 11.8.2
Downloading Chef 11.8.2 for ubuntu...
downloading https://www.opscode.com/chef/metadata?v=11.8.2&prerelease=false&nightlies=false&p=ubuntu&pv=12.04&m=x86_64
  to file /tmp/install.sh.1934/metadata.txt
trying wget...
url https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef_11.8.2-1.ubuntu.12.04_amd64.deb
md5 3d3b3662830a44eeec71aadc098a4018
sha256  a5b00a24e68e29a01c7ab9de5cdaf0cc9fd1c889599ad9af70293e5b4de8615c
downloaded metadata file looks valid...
downloading https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef_11.8.2-1.ubuntu.12.04_amd64.deb
  to file /tmp/install.sh.1934/chef_11.8.2-1.ubuntu.12.04_amd64.deb
trying wget...
Comparing checksum with sha256sum...
Installing Chef 11.8.2
installing with dpkg...
(Reading database ... 107385 files and directories currently installed.)
Preparing to replace chef 11.8.2-1.ubuntu.12.04 (using .../chef_11.8.2-1.ubuntu.12.04_amd64.deb) ...
Unpacking replacement chef ...
Setting up chef (11.8.2-1.ubuntu.12.04) ...
Thank you for installing Chef!

$ chef-client --version
Chef: 11.10.4

也尝试重新启动计算机,尽管结果相同。

可以这样做,chef-client可以降级吗?

knife cookbook chef
2个回答
0
投票

[如果您从多功能安装程序安装了Chef 11.10.4(基本上与较早版本使用的是相同的install.sh,那么您基本上在/opt/chef内部安装了Chef的独立安装。

删除该目录将删除旧安装的几乎所有痕迹。剩下的就是删除/usr/bin中的符号链接,它们可能是chef-clientchef-solochef-shellknifeohai以及其他一些符号(请在[C0中查找符号链接的文件]指向/usr/bin

此后,使用您的上述技术重新安装,您应该安装了正确的版本。


0
投票

只需安装/opt/chef中的特定版本(取决于您的操作系统)。我通过简单的安装成功覆盖了较新版本的厨师客户端版本,降级了。

© www.soinside.com 2019 - 2024. All rights reserved.