This repo contains chef recipes I use to set up my personal computers.
- there must be an existing user with sudo privileges on the computer,
- ths computer must be running an SSH server.
If you may be running the install many times, this step avoids you having to retype all the necessary information each time.
. bin/setup_environment.sh
The above predefines the following:
- host name or IP,
- existing user,
- existing user's password,
- new user,
- new user's password.
$ bin/push-install
Linux:
sudo apt-get install git-core zsh ruby rubygems
sudo gem install --no-ri --no-rdoc bundler chef net-ssh
cd ~
git clone git://github.com/joeyates/home-cooking.git .home-cooking
cd .home-cooking
bundle install --path vendor/bundle
cp attributes.js.template attributes.js
cp chef-solo.rb.template chef-solo.rb
If you do not have bundler:
$ (sudo) gem install net-ssh
Edit attributes.js and chef-solo-rb, inserting user name.
sudo bundle exec chef-solo -c chef-solo.rb -j attributes.js -u root
OS X:
sudo gem install --no-ri --no-rdoc chef net-ssh
sudo chef-solo -c osx-chef-solo.rb -j attributes.js -u root -g wheel
home_cooking check
home_cooking diff
home_cooking stamp
home_cooking stamp --all