Automating Your InfrastructureAntons Kranga, OUG Harmony 2012, 1, June 2012
Name: Antons KrangaRole: Technology Architect, Technology TrainerWorks: Accenture, Member of JUG LatviaExperience: 10+ in ...
Problem
Trends in ITCopyright © 2012 Accenture All rights reserved.   © behindthecloud.net   4
IT complexity and the timeline                                                                                            ...
Managing IT Complexity                                                  Web Servers                                       ...
Managing IT Complexity             +1 server                            Web Servers                                       ...
Managing IT Complexity          20+ changes                             Web Servers                                       ...
Take IT Into the CloudCopyright © 2012 Accenture All rights reserved.   9
Take IT Into the Cloud         Cloud gives huge           Virtualization               PowerCopyright © 2012 Accenture All...
Take IT Into the Cloud         Cloud gives huge           Virtualization                                                  ...
Take IT Into the Cloud                                                   …and Cloud                                       ...
Take IT Into the Cloud          Cost of change            increases           exponentiallyCopyright © 2012 Accenture All ...
Take IT Into the Cloud                                                    As well as                                      ...
Take IT Into the Cloud      How will we      manage our    infrastructure?Copyright © 2012 Accenture All rights reserved. ...
Challenges of Cloud Adoption                                                  •   Virtualization Efficiency               ...
Example: Log Collection Becomes Complex                                                  Example of Facebook ScribeCopyrig...
How to survive in the Clouds?
Why Automate?                                                  •   Scalable                                               ...
Configuration Management Tools                                          •       Tight Integration with Infrastructure     ...
Chef Overview
What is Chef?Infrastructure automation platformCopyright © 2012 Accenture All rights reserved.   22
What is Chef?                                             Chef Users write Cookbooks and                                  ...
Anatomy of the Cookbook                                                  Cookbook                                         ...
Anatomy of the Cookbook                                                  Cookbook         Written in         Ruby DSL     ...
Anatomy of the Cookbook                                                         Cookbook                                  ...
Anatomy of the Cookbook                                                        Cookbook                                   ...
Anatomy of the Cookbook                                                  Cookbook                                         ...
Anatomy of the Cookbook                                                  Cookbook                                         ...
Anatomy of the Cookbook                                                  Cookbook                                         ...
Chef Architecture                                        Chef Server                                         (private or  ...
Chef Architecture                                        Chef Server                                         (private or  ...
Chef Architecture           Chef Server            (Rest API)                                       Nodes in your         ...
Chef Architecture                                                  Stores all nodes                                       ...
Chef Architecture                                                      All data                                           ...
Chef Architecture                                                                        cookbooks           Chef Server  ...
Chef Architecture                                                                                  cookbooks           Che...
Chef Architecture                                                                       cookbooks           Chef Server   ...
Chef Architecture                                                                                  cookbooks           Che...
Chef Architecture                                                                       cookbooks           Chef Server   ...
Chef Architecture                     Chef client uses                                  cookbooks                    for e...
Chef Architecture                                                                                 cookbooks           Chef...
Chef Architecture                                                                                         cookbooks       ...
Chef Architecture                                                                                         cookbooks       ...
Demo!
Reading…(video) Chef in 5 minutes   Cookbook Community    Cookbooks from 37 Signalshttp://goo.gl/Of1p5         http://goo....
Thank You!
Upcoming SlideShare
Loading in...5
×

Automating Your Infrastructure

993

Published on

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

  • Be the first to like this

No Downloads
Views
Total Views
993
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
50
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Automating Your Infrastructure

  1. 1. Automating Your InfrastructureAntons Kranga, OUG Harmony 2012, 1, June 2012
  2. 2. Name: Antons KrangaRole: Technology Architect, Technology TrainerWorks: Accenture, Member of JUG LatviaExperience: 10+ in IT, JavaCurrent assignment: Cloud Computing.
  3. 3. Problem
  4. 4. Trends in ITCopyright © 2012 Accenture All rights reserved. © behindthecloud.net 4
  5. 5. IT complexity and the timeline Virtual Nodes Physical Hardware 1980 1990 2000 2010+ Mainframe Client/Server Datacenter Cloud1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015Copyright © 2012 Accenture All rights reserved. © Mitchell Hill, Opscode, 5
  6. 6. Managing IT Complexity Web Servers Application Servers DatabaseCopyright © 2012 Accenture All rights reserved. 6
  7. 7. Managing IT Complexity +1 server Web Servers Application Servers DatabaseCopyright © 2012 Accenture All rights reserved. 7
  8. 8. Managing IT Complexity 20+ changes Web Servers Application Servers DatabaseCopyright © 2012 Accenture All rights reserved. 8
  9. 9. Take IT Into the CloudCopyright © 2012 Accenture All rights reserved. 9
  10. 10. Take IT Into the Cloud Cloud gives huge Virtualization PowerCopyright © 2012 Accenture All rights reserved. 10
  11. 11. Take IT Into the Cloud Cloud gives huge Virtualization Power at low cost PowerCopyright © 2012 Accenture All rights reserved. 11
  12. 12. Take IT Into the Cloud …and Cloud Infrastructure IncreasesCopyright © 2012 Accenture All rights reserved. 12
  13. 13. Take IT Into the Cloud Cost of change increases exponentiallyCopyright © 2012 Accenture All rights reserved. 13
  14. 14. Take IT Into the Cloud As well as infrastructure Changes complexity increases exponentiallyCopyright © 2012 Accenture All rights reserved. 14
  15. 15. Take IT Into the Cloud How will we manage our infrastructure?Copyright © 2012 Accenture All rights reserved. 15
  16. 16. Challenges of Cloud Adoption • Virtualization Efficiency • Infrastructure and Configuration Complexity • Security, Availability etc • Cloud Provider Lock-in • Critical Skills ShortageCopyright © 2012 Accenture All rights reserved. 16
  17. 17. Example: Log Collection Becomes Complex Example of Facebook ScribeCopyright © 2012 Accenture All rights reserved. 17
  18. 18. How to survive in the Clouds?
  19. 19. Why Automate? • Scalable Infrastructure • Accelerate Changes • Cloud Provider Abstraction • Leverage Skills Demand • Manage ConfigurationCopyright © 2012 Accenture All rights reserved. 19
  20. 20. Configuration Management Tools • Tight Integration with Infrastructure • Enterprise Ready • Write DSL (not shell commands) • Promote Reuse • Active CommunityCopyright © 2012 Accenture All rights reserved. 20
  21. 21. Chef Overview
  22. 22. What is Chef?Infrastructure automation platformCopyright © 2012 Accenture All rights reserved. 22
  23. 23. What is Chef? Chef Users write Cookbooks and Recipes to describe infrastructure in codeCopyright © 2012 Accenture All rights reserved. 23
  24. 24. Anatomy of the Cookbook Cookbook Configuration Attributes Recipe ArtifactsCopyright © 2012 Accenture All rights reserved. 24
  25. 25. Anatomy of the Cookbook Cookbook Written in Ruby DSL Configuration Attributes Recipe ArtifactsCopyright © 2012 Accenture All rights reserved. 25
  26. 26. Anatomy of the Cookbook Cookbook Configuration Attributes Recipe Artifacts Resource Recipe operates with platform agnostic resourcesCopyright © 2012 Accenture All rights reserved. 26
  27. 27. Anatomy of the Cookbook Cookbook Configuration Attributes Recipe Artifacts Resource Ensures that configuration matches to the Providers platform Providers ProvidersCopyright © 2012 Accenture All rights reserved. 27
  28. 28. Anatomy of the Cookbook Cookbook Configuration Attributes Recipe Artifacts Node and Resource cookbook configuration properties Providers Providers ProvidersCopyright © 2012 Accenture All rights reserved. 28
  29. 29. Anatomy of the Cookbook Cookbook Configuration Attributes Recipe Artifacts Cookbook Resource contain other configuration information Providers Providers ProvidersCopyright © 2012 Accenture All rights reserved. 29
  30. 30. Anatomy of the Cookbook Cookbook Configuration Attributes Recipe Artifacts Resource Templates Files Libs Providers Providers ProvidersCopyright © 2012 Accenture All rights reserved. 30
  31. 31. Chef Architecture Chef Server (private or hosted) Chef Server (Rest API) Remote Node Remote Node Remote NodeCopyright © 2012 Accenture All rights reserved. 31
  32. 32. Chef Architecture Chef Server (private or hosted) Chef Server (Rest API) May have WebUI Remote Node Remote Node Remote NodeCopyright © 2012 Accenture All rights reserved. 32
  33. 33. Chef Architecture Chef Server (Rest API) Nodes in your infrastructure, managed by chef server Remote Node Remote Node Remote NodeCopyright © 2012 Accenture All rights reserved. 33
  34. 34. Chef Architecture Stores all nodes configuration attributes, cookbooks cookbooks etc Chef Server CouchDB attributes (Rest API) … databags Remote Node Remote Node Remote NodeCopyright © 2012 Accenture All rights reserved. 34
  35. 35. Chef Architecture All data stored in JSON cookbooks Chef Server CouchDB attributes (Rest API) … databags Remote Node Remote Node Remote NodeCopyright © 2012 Accenture All rights reserved. 35
  36. 36. Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Can be used by user or Remote Node cookbook Remote Node Remote NodeCopyright © 2012 Accenture All rights reserved. 36
  37. 37. Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Can be used by Provides powerful user or search capabilities Remote Node cookbook for CoachDB Remote Node Remote NodeCopyright © 2012 Accenture All rights reserved. 37
  38. 38. Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Remote Node RabbitMQ Remote Node Remote Node Stores and forwards data from Chef to solr indexerCopyright © 2012 Accenture All rights reserved. 38
  39. 39. Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Remote Node RabbitMQ Remote Node Updates solr Remote Node indexer Stores and forwards data from Chef to solr indexerCopyright © 2012 Accenture All rights reserved. 39
  40. 40. Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Remote Node has All recipes RabbitMQ been combined in Remote Node Remote list and run Node executed by chef client Chef ClientCopyright © 2012 Accenture All rights reserved. 40
  41. 41. Chef Architecture Chef client uses cookbooks for execution “pull” strategy which is Chef Servermore flexible in CouchDB attributes (Rest API) real life … search solr databags Remote Node RabbitMQ Remote Node Remote Node Chef ClientCopyright © 2012 Accenture All rights reserved. 41
  42. 42. Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Remote Node RabbitMQ Remote Node Remote Node Ohai is the tool to discover platform attributes Chef Client OhaiCopyright © 2012 Accenture All rights reserved. 42
  43. 43. Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Remote Node RabbitMQ Remote Node Remote Node User Workstation knife knife knife Chef Client OhaiCopyright © 2012 Accenture All rights reserved. 43
  44. 44. Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Remote Node RabbitMQ Remote Node User executes Remote Node knife CLI to operate with Chef Server User Workstation knife knife knife Chef Client OhaiCopyright © 2012 Accenture All rights reserved. 44
  45. 45. Demo!
  46. 46. Reading…(video) Chef in 5 minutes Cookbook Community Cookbooks from 37 Signalshttp://goo.gl/Of1p5 http://goo.gl/yAlPA http://goo.gl/uHC7A Questions?
  47. 47. Thank You!
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×