1. Rethinking IT: An Introduction
to DevOps with Chef
Julian C. Dunn
Senior Consultant, Opscode
<jdunn@opscode.com>
Wednesday, October 2, 13
2. Topics
• Rethinking IT with DevOps
• What Chef is and how it helps
• Flavors of Chef
• Use cases and demo
Wednesday, October 2, 13
3. I came to hear about
Chef.
Wednesday, October 2, 13
4. Why are you throwing
DevOps into this?
Wednesday, October 2, 13
5. It’s how Chef works best
• Chef is a tool.
• It works best when developers and operations
work well together
• You don’t need “DevOps” for Chef to be successful.
• But it helps.
Wednesday, October 2, 13
6. What is this DevOps?
Sounds like a buzzword.
Wednesday, October 2, 13
7. DevOps: Aligning Objectives
• Cultural and Professional
movement
• Development and
Operations working
together
• Leveraging ideas &
processes from other
industries
• To enable the business
Wednesday, October 2, 13
9. Speed of Globalization
• 40 years for container
ships to move 70% of
seaborne trade
• 22 years for internet
access to reach 78%
penetration in North
America
Wednesday, October 2, 13
10. Globalization
• Online retail sales are 7%
of all retail sales
• 75% of 2011 Thanksgiving
shoppers did so online
• 42% of all retail
purchases were
influenced by online
research – accounting for
~50% of total retail
spending.WTO Trends in Globalization
http://www.wto.org/english/res_e/booksp_e/anrep_e/wtr08-2b_e.pdf
http://www.flickr.com/photos/duke_raoul/2261478794/sizes/l/in/photostream/
Wednesday, October 2, 13
11. Mobile Devices
• 42% are smartphones
• 58% will be on next
purchase
• 4.2 Billion phones
globally for 7.09 Billion
people (USCB)
http://ssiknowledgewatch.com/2012/05/09/cell-phones-approach-total-penetration-globally-with-smartphones-moving-toward-market-dominance-2/
http://www.brightsideofnews.com/news/2011/1/26/digital-divide-global-household-penetration-rates-for-technology.aspx?pageid=1
Wednesday, October 2, 13
18. Drivers of IT Innovation
The Result: The Coded Business
How: Redefinition of how to use technology to
create business value
Why: To rapidly deliver experiences, goods and
services to customers
What: Consumer-facing businesses
Wednesday, October 2, 13
19. The Rise of the Coded Business
• Speed of change > speed of skills development
• IT is moving from the back office to the front office
• Digital consumption
• Technology directly supports customer interactions
• Companies must move faster to compete
Wednesday, October 2, 13
20. Patterns of the Coded Business
Business
Agility
Development
Velocity and
Consistency
Continuous
Delivery
IT
IT enables Business Agility and
becomes a strategic advantage
rather than a cost center.
Wednesday, October 2, 13
21. The Coded Business: Coming to Every Enterprise
Manufacturing Financial
Services
Retail
Media and
Entertainment
High
Technology
Healthcare
Wednesday, October 2, 13
23. DevOps...
• Cultural and professional movement
• Grew directly from people who have experienced
this transition
• Applies directly to traditional IT
• Applies directly to other systems of survival in
our culture
Wednesday, October 2, 13
25. Open Communication
• Developers &
Operations talk and
listen to one another
• Production & build
metrics are available
to all
• Current infrastructure
is documented
Wednesday, October 2, 13
26. Incentive & Responsibility Align
• Create awesome
customer experiences
• Responsibility &
accountability, not
authority
• Responsible for your
own uptime
Wednesday, October 2, 13
27. Respect
• You don’t have to be
everyone’s best friend
• But you do need to
recognize
contributions and treat
each other well
• No asshole rule
Wednesday, October 2, 13
28. Culture: Trust
• Trust that everyone is
competent & working
toward the common
goals
• Without trust, the
tools don’t matter
Wednesday, October 2, 13
29. DevOps: CAMS
• Culture
• Automation
• Measurement
• Sharing
• Chef is (part of) “A”. Works best with C, M and S.
Wednesday, October 2, 13
49. Golden Images are not the answer
• Gold is heavy
• Hard to transport
• Hard to mold
• Easy to lose
configuration detail
http://www.flickr.com/photos/garysoup/2977173063/
Wednesday, October 2, 13
57. Chef Solves This Problem
• But you already
guessed that, didn’t
you?
Wednesday, October 2, 13
58. Chef is Infrastructure as Code
• Programmatically
provision and
configure
• Treat like any other
code base
• Reconstruct business
from code repository,
data backup, and bare
metal resources.http://www.flickr.com/photos/louisb/4555295187/
Wednesday, October 2, 13
59. Programs
• Chef generates
configurations directly
on nodes from their run
list
• Reduce management
complexity through
abstraction
• Store the configuration
of your programs in
version control
http://www.flickr.com/photos/ssoosay/5126146763/
Wednesday, October 2, 13
60. Declarative Interface to Resources
• Define Policy
• Say what, not how
• Pull not Push
http://www.flickr.com/photos/bixentro/2591838509/
Wednesday, October 2, 13
61. That Looks Like This
package "apache2"
template "/etc/apache2/apache2.conf" do
source "apache2.conf.erb"
owner "root"
group "root"
mode "0644"
variables(:allow_override => "All")
notifies :reload, "service[apache2]"
end
service "apache2" do
action [:enable,:start]
supports :reload => true
end
Wednesday, October 2, 13
83. NagiosGraphite
JBoss App
Memcache
PostgreSQL
Slaves
To Add a New Server…
• 2x Web Server Configurations
• 2 Web Server Restarts
• 4x Database Configurations
• 8x Firewall Configurations
• DNS Service
• Network Configuration
• Deployer
• 8x Monitoring Changes
20+ Changes
12+ New Infrastructure
Dependencies
4+ Hours
Count the Resources
Wednesday, October 2, 13
84. NagiosGraphite
JBoss App
Memcache
PostgreSQL
Slaves
To Add a New Server…
• 2x Web Server Configurations
• 2 Web Server Restarts
• 4x Database Configurations
• 8x Firewall Configurations
• DNS Service
• Network Configuration
• Deployer
• 8x Monitoring Changes
20+ Changes
12+ New Infrastructure
Dependencies
4+ Hours
Count the Resources
Add 1 server
20+ Changes
Wednesday, October 2, 13
88. And at Greater Scale...
How Do we Manage
This
at Cloud Scale?
• Thousands of
infrastructure
dependencies and
configurations needed
for each change.
• Huge Amounts of Time
• Increased Cost of
Correction of Manual
Errors
• Huge Need for Talent
• Risk of Critical Skills
Shortage
Wednesday, October 2, 13
89. Automation is a Journey
Full
Automation
Common
Automation
Tasks:
Scripts, OS
Compliance,
Updates, etc.
Configuration
ManagementDiscovery and
Visibility
Application
Management
Continuous
Deployment
The Path to the Coded Business
Wednesday, October 2, 13
92. Flavors of Chef Server
• SaaS, hosted by Opscode
• Manage up to 50,000 servers
• Industry-leading SLAs
• 24x7x365 Support Options
• Get up and running quickly
• Pay/grow as you need
Hosted Enterprise Chef
Wednesday, October 2, 13
93. Flavors of Chef Server
• All the power of Hosted Enterprise, behind
the firewall
• Delivered as enterprise software
• Implementation consulting customized to
customer’s needs
Enterprise Chef
Wednesday, October 2, 13
94. Flavors of Chef Server
• Core components of Chef Server
developed as open source
• No enterprise features (LDAP, HA, etc.)
but many people use it successfully
• Community support
Open Source Chef Server
Wednesday, October 2, 13
96. Let’s Learn Chef!
• https://learnchef.opscode.com/
• Next meetup: Hands on. Bring laptops!
• Feel free to get started early
Wednesday, October 2, 13
97. Thanks
• Julian Dunn
• jdunn@opscode.com
• @julian_dunn
• www.juliandunn.net
Wednesday, October 2, 13