Deploying a Chef Server

  • View
    1.416

  • Download
    2

Embed Size (px)

DESCRIPTION

Walk through of deploying a Chef to Rackspace three ways: * Omnibus * Chef-solo * Rackspace Deployments

Text of Deploying a Chef Server

  • 1.BROWN BAG: Chef in PRODUCTIONHart Hoover @hhooverCLOUD SAVVY

2. CLOUD SAVVY!2 3. ENTERPRISECLOUD SAVVY!3 4. CHEF SOLOCLOUD SAVVY!4 5. OPEN SOURCE CHEF CLOUD SAVVY!5 6. TOOLS! CLOUD SAVVYGit/GitHub Berkshelf Vagrant Vagrant Plugins Test Kitchen Foodcritic !6 7. CHEF SeRVER ANATOMYCLOUD SAVVY 8. NGINXWebUIAPIErchefBookshelfPostgreSQLCookbooksMQSOLRCLOUD SAVVY!8 9. YOUR OWN CHEF SERVERINSTALL THE PACKAGECLOUD SAVVY!9 10. YOUR OWN CHEF SERVERUSE RACKSPACE DEPLOYMENTS (HEAT/CHECKMATE)CLOUD SAVVY!10 11. YOUR OWN CHEF SERVERUSE CHEF-SOLO TO DEPLOY CHEF-SERVERCLOUD SAVVY!11 12. PACKAGESCLOUD SAVVY 13. REQUIREMENTSOPERATING SYSTEM: !UBUNTU 12.04 OR CENTOS 6.3CLOUD SAVVY!13 14. REQUIREMENTSFQDNCLOUD SAVVY!14 15. UBUNTU 12.04OMNIBUS curl-Lhttps://www.opscode.com/chef/install.sh|sudobashCLOUD SAVVY!15 16. UBUNTU 12.04IS THE CHEF SERVER RUNNING?CLOUD SAVVY!16 17. CLOUD SAVVY!17 18. MANAGING SERVICES$ chef-server-ctlCLOUD SAVVY!18 19. Chef-Server-CTL$ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service]status [service] tail [service] test --allCLOUD SAVVY!19 20. Chef-Server-CTL$ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service]status [service] tail [service] test --allCLOUD SAVVY!20 21. Chef-Server-CTL$ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service]status [service] tail [service] test --allCLOUD SAVVY!21 22. Chef-Server-CTL$ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service]status [service] tail [service] test --allCLOUD SAVVY!22 23. Chef-Server-CTL$ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service]status [service] tail [service] test --allCLOUD SAVVY!23 24. Chef-Server-CTL$ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service]status [service] tail [service] test --allCLOUD SAVVY!24 25. Chef-Server-CTL$ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service]status [service] tail [service] test --allCLOUD SAVVY!25 26. Chef-Server-CTL$ chef-server-ctl [OPTION] help reconfigure stop [service] start [service] restart [service]status [service] tail [service] test --allCLOUD SAVVY!26 27. START ALL THE THINGS$ chef-server-ctl reconfigureCLOUD SAVVY!27 28. CLOUD SAVVY!28 29. DEPLOYMENTSCLOUD SAVVY 30. CLOUD SAVVY!30 31. CLOUD SAVVY!31 32. CLOUD SAVVY!32 33. CLOUD SAVVY!33 34. CHEF ON CHEFCLOUD SAVVY 35. CHEF-SOLO METHODhttps://github.com/opscode-cookbooks/chef-serverCLOUD SAVVY!35 36. ATTRIBUTESapi_fqdnCLOUD SAVVY!36 37. ATTRIBUTESversionCLOUD SAVVY!37 38. BOOTSTRAP YOUR SERVERINSTALL CHEF SOLO (OMNIBUS AGAIN) curl-Lhttps://www.opscode.com/chef/install.sh|sudobashCLOUD SAVVY!38 39. BOOTSTRAP YOUR SERVERCREATE DIRECTORIES $ mkdir -p /var/chef/cache $ mkdir -p /var/chef/cookbooks/chef-serverCLOUD SAVVY!39 40. BOOTSTRAP YOUR SERVERGET THE COOKBOOK $ wget -qO- https://github.com/opscode-cookbooks/ chef-server/archive/master.tar.gz | tar xvzC /var/ chef/cookbooks/chef-server --strip-components=1CLOUD SAVVY!40 41. BOOTSTRAP YOUR SERVERRUN 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-serverCLOUD SAVVY!44 45. Monitoring WITH NEW RELICCLOUD SAVVY 46. INFRASTRUCTURE MONITORINGCLOUD SAVVY!46 47. APPLICATION MONITORINGCLOUD SAVVY!47 48. PERFORMANCE MONITORINGCLOUD SAVVY!48 49. USE BERKSHELF!site :opscode !cookbook newrelicCLOUD SAVVY!49 50. ATTRIBUTES attributes/default.rbdefault['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