Skip to content

Instantly share code, notes, and snippets.

@muratayusuke
Last active December 15, 2015 09:29
Show Gist options
  • Save muratayusuke/5239275 to your computer and use it in GitHub Desktop.
Save muratayusuke/5239275 to your computer and use it in GitHub Desktop.
hello chef
# setup vagrant
gem install vagrant
vagrant box add ubuntu https://github.com/downloads/roderik/VagrantQuantal64Box/quantal64.box
vagrant init ubuntu
vagrant ssh-config --host melody >> ~/.ssh/config
vagrant up
vagrant gem install sahara
# setup knife-solo
git clone git://github.com/matschaffer/knife-solo.git
cd knife-solo
bundle install
rake install
# setup repository
knife solo init chef-repo
cd chef-repo
git init
git add .
git commit -m 'first commit '
knife solo prepare melody
git add nodes/melody.json
git commit -m 'add node json file'
knife cookbook create nginx -o site-cookbooks
#
# sahara
#
# sahara をインストール
$ vagrant gem install sahara
# sandbox モードを有効にする
$ vagrant sandbox on
# sandbox on した所まてOSの状態を戻す!
$ vagrant sandbox rollback
# OSの状態変更を確定
$ vagrant sandbox commit
# sandbox モードを解除
$ vagrant sandbox off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment