VagrantのomnibusプラグインでゲストOSにChef環境をいれるようにしているのですが、最近ゲストOSがUbuntu14.04だとvagrant provision
したら下記のようなエラーがでるようになってしまいました。
==> default: Installing Chef 11.16.2 Omnibus package...
==> default: Downloading Chef 11.16.2 for ubuntu...
==> default: downloading https://www.getchef.com/chef/metadata?v=11.16.2&prerelease=false&nightlies=false&p=ubuntu&pv=14.04&m=x86_64
==> default: to file /tmp/install.sh.2175/metadata.txt
==> default: trying wget...
==> default: ERROR 404
==> default: Unable to retrieve a valid package!
==> default: Please file a bug report at http://tickets.opscode.com
==> default: Project: Chef
==> default: Component: Packages
==> default: Label: Omnibus
==> default: Version: 11.16.2
==> default:
==> default: Please detail your operating system type, version and any other relevant details
==> default: Metadata URL: https://www.getchef.com/chef/metadata?v=11.16.2&prerelease=false&nightlies=false&p=ubuntu&pv=14.04&m=x86_64
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
sh install.sh -v 11.16.2 2>&1
Stdout from the command:
Downloading Chef 11.16.2 for ubuntu...
downloading https://www.getchef.com/chef/metadata?v=11.16.2&prerelease=false&nightlies=false&p=ubuntu&pv=14.04&m=x86_64
to file /tmp/install.sh.2175/metadata.txt
trying wget...
ERROR 404
Unable to retrieve a valid package!
Please file a bug report at http://tickets.opscode.com
Project: Chef
Component: Packages
Label: Omnibus
Version: 11.16.2
Please detail your operating system type, version and any other relevant details
Metadata URL: https://www.getchef.com/chef/metadata?v=11.16.2&prerelease=false&nightlies=false&p=ubuntu&pv=14.04&m=x86_64
Stderr from the command:
どうも、Chefの新しいバージョンだと問題があるようなので、応急処置的にVagrantfileでChefのバージョンを11.14.6に固定してエラーを回避するようにしました。
以下の箇所を、
Vagrantfile
config.omnibus.chef_version = :latest
バージョンを指定するように変更しました。
Vagrantfile
config.omnibus.chef_version = "11.14.6"
以上です。