Your SlideShare is downloading. ×
Deploying a Chef Server
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Deploying a Chef Server

1,253
views

Published on

Walk through of deploying a Chef to Rackspace three ways: …

Walk through of deploying a Chef to Rackspace three ways:

* Omnibus
* Chef-solo
* Rackspace Deployments

Published in: Business, Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,253
On Slideshare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
10
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. BROWN BAG: Chef in PRODUCTION Hart Hoover @hhoover CLOUD SAVVY
  • 2. CLOUD SAVVY !2
  • 3. ENTERPRISE CLOUD SAVVY !3
  • 4. CHEF SOLO CLOUD SAVVY !4
  • 5. OPEN SOURCE CHEF CLOUD SAVVY !5
  • 6. TOOLS! • • • • • • CLOUD SAVVY Git/GitHub Berkshelf Vagrant Vagrant Plugins Test Kitchen Foodcritic !6
  • 7. CHEF SeRVER ANATOMY CLOUD SAVVY
  • 8. NGINX WebUI API Erchef Bookshelf PostgreSQL Cookbooks MQ SOLR CLOUD SAVVY !8
  • 9. YOUR OWN CHEF SERVER INSTALL THE PACKAGE CLOUD SAVVY !9
  • 10. YOUR OWN CHEF SERVER USE RACKSPACE DEPLOYMENTS (HEAT/CHECKMATE) CLOUD SAVVY !10
  • 11. YOUR OWN CHEF SERVER USE CHEF-SOLO TO DEPLOY CHEF-SERVER CLOUD SAVVY !11
  • 12. PACKAGES CLOUD SAVVY
  • 13. REQUIREMENTS OPERATING SYSTEM: ! UBUNTU 12.04 OR CENTOS 6.3 CLOUD SAVVY !13
  • 14. REQUIREMENTS FQDN CLOUD SAVVY !14
  • 15. UBUNTU 12.04 OMNIBUS curl  -­‐L  https://www.opscode.com/chef/install.sh  |  sudo  bash CLOUD SAVVY !15
  • 16. UBUNTU 12.04 IS THE CHEF SERVER RUNNING? CLOUD SAVVY !16
  • 17. CLOUD SAVVY !17
  • 18. MANAGING SERVICES $ chef-server-ctl CLOUD SAVVY !18
  • 19. Chef-Server-CTL $ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service] status [service] tail [service] test --all CLOUD SAVVY !19
  • 20. Chef-Server-CTL $ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service] status [service] tail [service] test --all CLOUD SAVVY !20
  • 21. Chef-Server-CTL $ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service] status [service] tail [service] test --all CLOUD SAVVY !21
  • 22. Chef-Server-CTL $ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service] status [service] tail [service] test --all CLOUD SAVVY !22
  • 23. Chef-Server-CTL $ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service] status [service] tail [service] test --all CLOUD SAVVY !23
  • 24. Chef-Server-CTL $ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service] status [service] tail [service] test --all CLOUD SAVVY !24
  • 25. Chef-Server-CTL $ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service] status [service] tail [service] test --all CLOUD SAVVY !25
  • 26. Chef-Server-CTL $ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service] status [service] tail [service] test --all CLOUD SAVVY !26
  • 27. START ALL THE THINGS $ chef-server-ctl reconfigure CLOUD SAVVY !27
  • 28. CLOUD SAVVY !28
  • 29. DEPLOYMENTS CLOUD SAVVY
  • 30. CLOUD SAVVY !30
  • 31. CLOUD SAVVY !31
  • 32. CLOUD SAVVY !32
  • 33. CLOUD SAVVY !33
  • 34. CHEF ON CHEF CLOUD SAVVY
  • 35. CHEF-SOLO METHOD https://github.com/opscode-cookbooks/chef-server CLOUD SAVVY !35
  • 36. ATTRIBUTES api_fqdn CLOUD SAVVY !36
  • 37. ATTRIBUTES version CLOUD SAVVY !37
  • 38. BOOTSTRAP YOUR SERVER INSTALL CHEF SOLO (OMNIBUS… AGAIN) curl  -­‐L  https://www.opscode.com/chef/install.sh  |  sudo  bash CLOUD SAVVY !38
  • 39. BOOTSTRAP YOUR SERVER CREATE DIRECTORIES $ mkdir -p /var/chef/cache $ mkdir -p /var/chef/cookbooks/chef-server CLOUD SAVVY !39
  • 40. BOOTSTRAP YOUR SERVER GET THE COOKBOOK $ wget -qO- https://github.com/opscode-cookbooks/ chef-server/archive/master.tar.gz | tar xvzC /var/ chef/cookbooks/chef-server --strip-components=1 CLOUD SAVVY !40
  • 41. BOOTSTRAP YOUR SERVER RUN CHEF-SOLO $ chef-solo -o 'recipe[chef-server::default]' CLOUD SAVVY !41
  • 42. CLOUD SAVVY !42
  • 43. CLOUD SAVVY !43
  • 44. https://github.com/opscode-cookbooks/chef-server CLOUD SAVVY !44
  • 45. Monitoring WITH NEW RELIC CLOUD SAVVY
  • 46. INFRASTRUCTURE MONITORING CLOUD SAVVY !46
  • 47. APPLICATION MONITORING CLOUD SAVVY !47
  • 48. PERFORMANCE MONITORING CLOUD SAVVY !48
  • 49. USE BERKSHELF! site :opscode ! cookbook ‘newrelic’ CLOUD SAVVY !49
  • 50. ATTRIBUTES attributes/default.rb default['newrelic']['server_monitoring']['license']  =  "CHANGE_ME"   default['newrelic']['application_monitoring']['license']  =  "CHANGE_ME" CLOUD SAVVY !50
  • 51. YOUR MONITORING RUN LIST: recipe[newrelic] SET YOUR ATTRIBUTES! CLOUD SAVVY !51
  • 52. THANK YOU! CLOUD SAVVY