DrupalCamp LA 2012: COOK UP SOME STACKS OF DRUPAL GOODNESS WITH CHEF

1,064 views

Published on

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,064
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

DrupalCamp LA 2012: COOK UP SOME STACKS OF DRUPAL GOODNESS WITH CHEF

  1. 1. @CraigMcEldowney + @SteveRifkin = @crifkin
  2. 2.   13 years dev/ consulting   WCMS, ECMS, DAM, WTF?   6 years Drupal   ??? years ad-hoc, de facto sysadminDrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  3. 3.  DevOps  What is Chef?  Your Kitchen  Stacks of Goodness  Demo/Questions/ApplauseDrupalCamp 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!!!DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  5. 5. So now I’m a sysadmin… %@#!&@#$#@ …but I know how to program!!!DrupalCamp 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!!!DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  7. 7. http://wiki.opscode.com/pages/viewpage.action?pageId=7274862DrupalCamp 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 configurationDrupalCamp 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   RolesDrupalCamp 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 listDrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  13. 13. Nice and easy… Varnish / Webhead Uh oh… lookout… Utility Varnish Chef Server / Memcached / Auto-Scale Array SOLR / DB / etc? Webhead Webhead ... Webhead Utility NFS / DB MemcachedDrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  14. 14. Blah dah DOOSH!!! Load Balancer Auto-Scale Array Varnish Varnish ... Varnish Auto-Scale Array Webhead Webhead ... Webhead Storage Cluster DB Cluster Squirrel ClusterDrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
  15. 15. 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.comDrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin

×