Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Saltconf16 - Salt is Not Configuration Management

578 views

Published on

Saltstack is often used for configuration management. However, we give a quick crash course on some of the features of Salt that show how it's more of a platform for developing automated solutions for data centers.

Published in: Technology
  • Be the first to comment

Saltconf16 - Salt is Not Configuration Management

  1. 1. Salt is not Configuration Management (It’s So much More) Drew Malone - Devops Guy - Cloudera
  2. 2. pillar.get(‘speaker:bio’) Drew Malone Devops guy @ Cloudera - Internal Systems Engineering Previously - Salt the Cloud & Make it Rain! Saltstack Certified Engineer #8 @drawsmcgraw www.theReluctantTecchie.com
  3. 3. Why are we here? New to Salt? Overwhelmed by all the docs? ● You’re in the right place (you’re also not alone). Veteran to Salt? Want to hear how others use it? ● You’re in the right place. Tired after a long conference and just want to be done? ● It’ll be quick and I promise you’ll learn something new.
  4. 4. Outline 1) Config Management in a Nutshell 2) Salt Components Crash Course 3) Example Use Cases & Stories 4) Further Reading (i.e. Homework) 5) Done!
  5. 5. Config Management in a Nutshell Remember when…?
  6. 6. First day! ● Many machines ● Manual configurations ● Inconsistent results
  7. 7. And then…. ● More machines ● Automated configurations ● Consistent results
  8. 8. Finally…. ● More services ● Automated deploys ● Consistent uptime
  9. 9. We win! ...now what? What’s the reward for Good Work?
  10. 10. More Good Work ● Merge unrelated systems ● Build complex systems ● “Real Time” systems More toolsets…?
  11. 11. Tools - You Have Them Salt ships with a whole set of tools you may not be aware of. http://static.webshopapp.com/shops/001706/files/002189370/tool-set-in-case-186-piece.jpg
  12. 12. Tools - They Do Work ...and they do more than you think they do. http://www.homedepot.com/p/Ryobi-ONE-18-Volt-Lithium-Ion-All-in-1-DIY-Combo-Kit-12-Tool-P859/204065437
  13. 13. Event Driven Message Bus Salt is a parallel remote execution engine. Upon which you can build config management. But is has much greater implications. http://www.homedepot.com/p/Ryobi-ONE-18-Volt-Lithium-Ion-All-in-1-DIY-Combo-Kit-12-Tool-P859/204065437
  14. 14. Quick Inventory Mine API Engines SSH Reactor Cloud Orchestrate Beacons Virt Custom
  15. 15. Reactor (+ Thorium) Map events to actions http://honeyandlime.co/wp-content/uploads/2014/01/Diet-Coke-and-Mentos-Geyser-Eruption-Experiment.jpg
  16. 16. Salt Cloud Codify your footprint OS roles VM size # of VMs Jeremy Holmes - https://www.flickr.com/people/photopremier/
  17. 17. Salt API Programmatic Salt Access http://vignette2.wikia.nocookie.net/matrix/images/d/df/Thematrixincode99.jpg/revision/latest?cb=20140425045724
  18. 18. Salt Mine Store Minion details on the Master http://rbth.com/980x-/assets/images/daily2/sol_big.jpg
  19. 19. Orchestrate Codify complex systems Explicit order of operations http://www.chickslovethecar.com/images/topblueprint.jpg
  20. 20. Salt SSH Your response to “Another agent???” Runs in a small python environment https://en.wikipedia.org/wiki/OpenSSH#/media/File:OpenSSH_logo.png
  21. 21. Salt Virt Turn your laptop into a compute cloud Primordial phase of the Salt project (no- database cloud controller)
  22. 22. Engines Mission Control for Salt- powered applications http://www.bryanrapoza.com/wp-content/uploads/2011/09/sts131_1920x1200.jpg
  23. 23. Beacons On-the-ground, real-time sensors https://tristrabulsy.files.wordpress.com/2012/10/minecraft-beacon-blocks.jpg
  24. 24. Customize! Custom: - Modules - Grains - Pillar - *everything* http://cdn.idigitaltimes.com/sites/idigitaltimes.com/files/styles/embedded_full/public/2015/11/30/xenoblade-chronicles-x-skells-custom.jpg
  25. 25. Assembling the Parts Each component is a building block. What happens when we put them together?
  26. 26. State Enforcement Beacons + Reactors = Anti-cowboy measures
  27. 27. Authoritative Source sanctioned-users: - arthur - lancelot systems http://i1226.photobucket.com/albums/ee409/paneelmaja/Untitled-4_zpsb55629af.jpg
  28. 28. Authoritative Source sanctioned-users: - arthur - lancelot - galahad sanctioned-users: - arthur - lancelot systems http://www.brickshow.com/wp-content/uploads/2010/06/cowboy-lego.jpg
  29. 29. Authoritative Source sanctioned-users: - arthur - lancelot systems Notify! sanctioned-users: - arthur - lancelot - galahad
  30. 30. Authoritative Source sanctioned-users: - arthur - lancelot systems sanctioned-users: - arthur - lancelot Enforce!
  31. 31. Codified Footprints Salt Cloud - Your environment in a yaml file.
  32. 32. Class Environment student-machine: - student-001 - student-002 - student-003 . . . http://ecs.rutgers.edu/sites/default/files/dsvlab.jpg
  33. 33. Webapp Deployment cent-7: # App servers - awesome-ui-01: minion: grains: roles: - ui # Mongo servers - awesome-mongo-01: minion: grains: roles: - mongo # Nginx reverse proxy - awesome-rproxy-01: minion: grains: roles: - rproxy
  34. 34. On-the-fly Cost Compute Which cloud is the cheapest today? Salt Cloud queries include pricing details! When you’re cloud-agnostic, you don’t need special tools.
  35. 35. Portable Autoscaling Salt Cloud + Reactor = Autoscaling
  36. 36. Website! User!
  37. 37. Website! Much users! Halp plz! !
  38. 38. Website! Much users! Moar servers!
  39. 39. Website! Much users!
  40. 40. “Just use Autoscaling!” -BUT- Avoid proprietary solutions. With Salt, you bring your own capabilities.
  41. 41. Continuous Integration Salt API + Reactor = Never update configs again.
  42. 42. Configurations
  43. 43. Commit && push Configurations
  44. 44. POSTConfigurations
  45. 45. state.sls riemann.running Configurations
  46. 46. Configurations New configs now in production!
  47. 47. Kerberos as a Service Salt API + Reactor = No more human error
  48. 48. Kerberos is Hard So is Hadoop. Kerberos AND Hadoop? We need a bigger boat.
  49. 49. Toolbox Minion - on Windows Active Directory Salt API - Receive requests Reactor - Map API events to script runs Jinja - Templated Powershell script
  50. 50. Further Reading Salt Syndic Returners SDB External Auth http://s2.quickmeme.com/img/0d/0dc5e9ebd13f6720270f2975381dcfa2fad3326fa0bc7ee4f550f0129e02a3a0.jpg
  51. 51. In Conclusion Salt is more than config management. It’s a platform. Message bus is the central nervous system to your data center. It’s a toolbox full of services and tricks to help you get work done.
  52. 52. Stump the Chump! Question & Answer Section
  53. 53. Feedback Plz Use the SaltConf16 event app to provide feedback for this presentation. https://cdn.meme.am/instances/500x/66955666.jpg
  54. 54. Thanks, and Congrats!

×