Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Chef

 Chef

Chefについての概論
2014.11.23
エンジニア朝活会@BIZREACH
@yokozuna_hanao

Tetsuya Taguchi

November 23, 2014
Tweet

More Decks by Tetsuya Taguchi

Other Decks in Technology

Transcript

  1. package "nginx" do action :install end template "/etc/nginx/nginx.conf" do owner

    "root" group "root" mode 0644 notifies :reload, "service[nginx]", :delayed end service "nginx" do supports :status => true, :restart => true, :reload => true action [ :enable , :start ] end
  2. $  be  knife  solo  cook  vagrant_local   Running  Chef  on

     vagrant_local...   Checking  Chef  version...   Installing  Berkshelf  cookbooks  to  'cookbooks'...   Resolving  cookbook  dependencies...   Using  build-­‐essen@al  (2.0.6)     ...     Recipe:  nginx::default      *  package[nginx]  ac@on  install          -­‐  install  version  1.7.0-­‐1.el5  of  package  nginx      *  service[nginx]  ac@on  enable          -­‐  enable  service  service[nginx]      *  service[nginx]  ac@on  start          -­‐  start  service  service[nginx]