Cook Up Some Stacks of Drupal Goodness With Chef

2,453 views

Published on

Presentation

  • Be the first to comment

  • Be the first to like this

Cook Up Some Stacks of Drupal Goodness With Chef

  1. 1. Cook Up Some Stacks of Drupal Goodness With Chef @CraigMcEldowney + @SteveRifkin = @crifkin
  2. 2.  13 years dev/consulting  WCMS, ECMS, DAM, WTF?  6 years Drupal  ??? years ad-hoc, de facto sysadminPresenter: Craig McEldowneyPeanut Gallery: Steve RifkinDrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  3. 3.  DevOps  What is Chef?  Your Kitchen  Stacks of Goodness  Demo/Questions/ApplauseAgendaDrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  4. 4.  How do you maintain servers???  Package Managers  Scripting  VMs / Golden Images  Multiple Clients / Multiple Platforms / Hair-tearing R@GE!!!DevOpsDrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  5. 5. So now I’m a sysadmin… %@#!&@#$#@ …but I know how to program!!!DevOpsDrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  6. 6.  Open source systems integration framework by Opscode  System configuration as source code ◦ Configuration Template w/ Business Logic ◦ Describe infrastructure ◦ Establish relationships between boxes  When a new server comes online, all you need to do is tell Chef what role(s) it plays in your architecture. All other servers will adjust their configuration automatically to welcome the new member to the fold!!!What is Chef?DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  7. 7. http://wiki.opscode.com/pages/viewpage.action?pageId=7274862What is Chef?DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  8. 8.  Golden Images = bad  Automated / Repeatable process  Break platform-dependency  Idempotency ◦ Operations can be applied multiple times w/out changing the result ◦ e.g. Always enforce compliance with desired configurationWhy Chef?DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  9. 9. Your (messy) Kitchen… or… where the metaphor dies!!!!DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  10. 10.  Node / Client  Cookbook ◦ Recipes ◦ Templates  RolesChef Crash CourseDrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  11. 11.  Flavors of Chef ◦ Chef Solo ◦ Managed Chef (hosted chef provided by Opscode) ◦ Chef ServerDrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  12. 12.  “Knife”: One of the few adherents to the “chef” metaphor!!!  Push changes to chef server ◦ knife cookbook upload ◦ knife role from file  Create nodes ◦ knife ec2 server create  Trigger actions on nodes ◦ knife ssh  Discover information about nodes ◦ knife search  Plugins ◦ knife ec2 server listKnife – Chef’s drush!!!DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  13. 13. Nice and easy… Uh oh… lookout…Stacks… In Pratice…DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  14. 14. Blah dah DOOSH!!!…or evenDrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  15. 15. It’s Demo-o-clock!!!DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  16. 16.  Hosted Chef ◦ http://www.opscode.com/hosted-chef/  Install Ruby Version Manager ◦ http://beginrescueend.com  Install Chef on your Workstation ◦ http://wiki.opscode.com/display/chef/Workstation+ Setup  Download community cookbooks ◦ http://community.opscode.com/  Chef documentation ◦ http://wiki.opscode.comChef ResourcesDrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin

×