-
-
Save muratayusuke/5239275 to your computer and use it in GitHub Desktop.
hello chef
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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