Skip to content

Instantly share code, notes, and snippets.

@shoya140
Created May 13, 2014 08:44
Show Gist options
  • Select an option

  • Save shoya140/5c19ffdc03cb79370b2c to your computer and use it in GitHub Desktop.

Select an option

Save shoya140/5c19ffdc03cb79370b2c to your computer and use it in GitHub Desktop.
chef
# chef-solo: nodeでchef-repoを作成して環境構築
curl -L http://www.opscode.com/chef/install.sh | sudo bash
git clone git://github.com/opscode/chef-repo.git
knife configure
knife cookbook create hello -o cookbooks
vi cookboks/hello/recipes/default.rb
vi localhost.js
vi solo.rb
sudo chef-solo -c solo.rb -j ./localhost.json
# knife-solo: clientでchef-repo作成してknife solo cookで転送, 結果をモニタ
knife solo init chef-repo
knife cookbook create hello -o site-cookbooks
knife solo prepare <host>
knife solo cook <host>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment