• Chef Server Installation Guide for Amazon linux
  • First find the right version to install from http://www.getchef.com/chef/install/ as of this writing, I am usign 11.0.12. rpm -Uvh https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-server-11.0.12-1.el6.x86_64.rpm // Run this to configure the sever, if you have problem checkout the trouble shooting guide below. chef-server-ctl reconfigure // Check Chef server config chef-server-ctl test
  • Set /etc/hosts otherwise you may not be able to login on the web UI
  • xx.xxx.xxx.xxx your.awesome.domain.com 127.0.0.1 localhost localhost.localdomain If you are installing Chef server on Amazon Linux micro instace you may run across the following problem:
  • Stuck on ruby_block[supervise_rabbitmq_sleep] action run
  • Add the following line to /opt/chef-server/embedded/cookbooks/runit/recipes/default.rb will solve the problem. when "amazon" include_recipe "runit::upstart"
  • Memory
  • Make sure you have enough memory and swap space // Run this command to create swap space dd if=/dev/zero of=/swap_1 bs=2048 count=1000000 mkswap /swap_1 swapon /swap_1 // Add the follow line to /etc/fstab so it will auto mount after reboot /swap_1 swap swap defaults 0 0 // Now you should be able to see the swap space you just created with this command free -tom
  • Dependency
  • You may have problem configure your Chef client(workstation) on your Mac, when you run "knife configure --initial" it will show you the following error: Ohai::Exceptions::DependencyNotFound: Can not find a plugin for dependency os That is the problem of chef client 11.12, try to install 10.32 first and install 11.12 again. This will bypass the problem in the mean time, when the patch will apply to the future release.(https://tickets.opscode.com/browse/CHEF-5211) curl -L https://www.opscode.com/chef/install.sh | sudo bash -s -- -v 10.32.2