rubyで楽々サーバー管理 - 岡山ruby会議01 -

Download Rubyで楽々サーバー管理 - 岡山Ruby会議01 -

If you can't read please download the document

Upload: masaya-konishi

Post on 24-Jun-2015

1.338 views

Category:

Documents


5 download

DESCRIPTION

岡山Ruby会議01で、サーバー構成管理ツールのchefについて発表しました。

TRANSCRIPT

  • 1. Ruby (@ore_public)

2. 3. cron 4. 5. A(A)B(B)C(C)DB(BC)() 6. chef 7. chefChef-server(cookbook)git NodePCChef-server(chef-client) 8. 1cookbookRecipeRubytemplateerb 9. 2Chef-servercookbookChef-clientchef-serverKnifecookbookclient 10. chef 11. chefChef-serverdebianChef-clientgemPCgem 12. chef # template "/tmp/sl001.txt" do source "sl001.txt.erb" owner "masaya" group "masaya" mode 0644 end # Welcome to Chef! CPU : Memory: OS : 13. chef Welcome to Chef! CPU :Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz Memory:2005884kB OS :scientific 6.2 14. chef2cron # cron "root_c" douser "root"command "/bin/ls"hour "4"minute "11" end # Chef Name: root_c 11 4 * * * /bin/ls 15. chefhttp://blog.office-ore.net/http://wiki.opscode.com/display/chef/Homecronhttp://wiki.opscode.com/display/chef/Resources#Resources-Cron