Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Cook Up Some Stacks of Drupal Goodness With Chef
1. Cook Up Some Stacks
of Drupal Goodness
With Chef
@CraigMcEldowney
+
@SteveRifkin
=
@crifkin
2. 13 years
dev/consulting
WCMS, ECMS, DAM,
WTF?
6 years Drupal
??? years ad-hoc,
de facto sysadmin
Presenter: Craig McEldowney
Peanut Gallery: Steve Rifkin
DrupalCamp LA 2012
@craigmceldowney+@steverifkin=@crifkin
3. DevOps
What is Chef?
Your Kitchen
Stacks of Goodness
Demo/Questions/Applause
Agenda
DrupalCamp LA 2012
@craigmceldowney+@steverifkin=@crifkin
4. How do you maintain servers???
Package Managers
Scripting
VMs / Golden Images
Multiple Clients / Multiple
Platforms / Hair-tearing R@GE!!!
DevOps
DrupalCamp LA 2012
@craigmceldowney+@steverifkin=@crifkin
5. So now I’m a sysadmin…
%@#!&@#$#@
…but I know how to program!!!
DevOps
DrupalCamp LA 2012
@craigmceldowney+@steverifkin=@crifkin
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
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
configuration
Why Chef?
DrupalCamp LA 2012
@craigmceldowney+@steverifkin=@crifkin
9. Your (messy) Kitchen
… or… where the metaphor dies!!!!
DrupalCamp LA 2012
@craigmceldowney+@steverifkin=@crifkin
10. Node / Client
Cookbook
◦ Recipes
◦ Templates
Roles
Chef Crash Course
DrupalCamp LA 2012
@craigmceldowney+@steverifkin=@crifkin
11. Flavors of Chef
◦ Chef Solo
◦ Managed Chef (hosted chef provided by
Opscode)
◦ Chef Server
DrupalCamp LA 2012
@craigmceldowney+@steverifkin=@crifkin
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 list
Knife – Chef’s drush!!!
DrupalCamp LA 2012
@craigmceldowney+@steverifkin=@crifkin
13. Nice and easy…
Uh oh… lookout…
Stacks… In Pratice…
DrupalCamp LA 2012
@craigmceldowney+@steverifkin=@crifkin
14. Blah dah DOOSH!!!
…or even
DrupalCamp LA 2012
@craigmceldowney+@steverifkin=@crifkin
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.com
Chef Resources
DrupalCamp LA 2012
@craigmceldowney+@steverifkin=@crifkin
Notas do Editor
Spin new webheadChef Server node listForce Varnish to detect new webhead(s)