Find file History
Pull request Compare This branch is even with ryanb:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

RailsCasts Episode #339: Chef Solo Basics

Requires Ruby 1.9.2 or higher.

Commands used on local machine

ssh root@
scp -r root@ .
mate chef
rsync -r . root@
ssh root@ "chef-solo -c /var/chef/solo.rb"
brew install ssh-copy-id
ssh-copy-id root@
openssl passwd -1 "theplaintextpassword"
ssh deployer@

Commands used on server

curl -L | bash
ruby -v
chef-solo -v
mkdir /var/chef
cd /var/chef
mkdir -p cookbooks/main/recipes
vim cookbooks/main/recipes/default.rb
vim solo.rb
chef-solo -c solo.rb
vim node.json
chef-solo -c solo.rb -j node.json