Created
November 4, 2013 00:57
Revisions
-
rafaelfelini created this gist
Nov 4, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,41 @@ sudo su cd curl -L https://www.opscode.com/chef/install.sh | bash chef-solo -v cd rm -rf * rm -rf .chef/ mkdir .chef echo 'cookbook_path [ "/root/chef-repo/cookbooks" ]' > .chef/knife.rb echo 'file_cache_path "/root/chef-solo"' >> solo.rb echo 'cookbook_path "/root/chef-repo/cookbooks"' >> solo.rb echo ' { "run_list": [ "recipe[nginx]" ] }' > web.json mkdir -p /root/chef-repo/cookbooks cd !$ knife cookbook site download yum knife cookbook site download apt knife cookbook site download ohai knife cookbook site download build-essential knife cookbook site download runit knife cookbook site download nginx for file in *.gz; do tar zxf $file; done; rm -f *.gz cd chef-solo -c solo.rb -j web.json