Upload
crifkin
View
2.065
Download
0
Embed Size (px)
DESCRIPTION
Presentation
Citation preview
Cook Up Some Stacksof Drupal Goodness
With Chef@CraigMcEldowney
+@SteveRifkin
=@crifkin
Presenter: Craig McEldowneyPeanut Gallery: Steve Rifkin
13 years dev/consulting
WCMS, ECMS, DAM, WTF?
6 years Drupal??? years ad-hoc,
de facto sysadmin
DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
Agenda
DevOpsWhat is Chef?Your KitchenStacks of GoodnessDemo/Questions/Applause
DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
DevOps
How do you maintain servers???
Package ManagersScriptingVMs / Golden ImagesMultiple Clients / Multiple Platforms / Hair-tearing R@GE!!!
DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
DevOps
So now I’m a sysadmin…
%@#!&@#$#@
…but I know how to program!!!
DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
What is Chef?
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
What is Chef?
http://wiki.opscode.com/pages/viewpage.action?pageId=7274862
DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
Why Chef?
Golden Images = badAutomated / Repeatable processBreak platform-dependencyIdempotency
◦Operations can be applied multiple times w/out changing the result
◦e.g. Always enforce compliance with desired configuration
DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
Your (messy) Kitchen… or… where the metaphor dies!!!!
DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
Chef Crash Course
Node / Client
Cookbook
◦Recipes
◦Templates
Roles
DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
Flavors of Chef
◦Chef Solo
◦Managed Chef (hosted chef provided by Opscode)
◦Chef Server
DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
Knife – Chef’s drush!!!
“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 list
DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
Stacks… In Pratice…
Nice and easy…
Uh oh… lookout…
DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
…or even
Blah dah DOOSH!!!
DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
It’s Demo-o-clock!!!DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin
Chef Resources
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+SetupDownload community cookbooks
◦http://community.opscode.com/Chef documentation
◦http://wiki.opscode.com
DrupalCamp LA 2012@craigmceldowney+@steverifkin=@crifkin