3

我在 MAC OSX 10.8 上,我知道这个任务应该用谷歌搜索,但我还是有点困惑。

我正在开发一个应该使用 chef-solo 的 vagrant 部署,但是当我访问 opscode 站点时,厨师安装程序分为厨师客户端和厨师服务器,如果我安装厨师客户端会安装厨师独奏吗?我在网上也找不到 chef-solo 的任何安装程序。另外在安装厨师的时候也会安装刀吗?

提前致谢。

4

1 回答 1

13

chef-solo is a part of Chef Client

See the package contents from Ubuntu 13.04

vagrant@devops:~$ dpkg -L chef | grep chef-solo
/opt/chef/bin/chef-solo
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/bin/chef-solo

Install Chef Client

Option 1

Shell script => install.sh which detects OS and use OS specific packages to install chef

Option 2

Use vagrant-omnibus to take care of Chef Client installation within the guest.

Install the plugin

vagrant plugin install vagrant-omnibus

Add the block in Vagrantfile, for example

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

  config.vm.box = "raring64"
  config.vm.hostname = "devops#{rand(01..99)}.vagrant.vm"

  # Use vagrant-omnibus to install chef client
  config.omnibus.chef_version = :latest

  # Enable Berkshelf via vagrant-berkshelf
  # config.berkshelf.enabled = true

Spin up the VM and it'll take care of the chef client installation.

NOTE: Chef Client is still available as a gem but OS specific (self-contained) packages are recommended, just make it easier to install and maintain.

于 2013-10-09T05:21:53.733 回答