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.

SaltConf2015: SaltStack at Scale Automating Your Automation

3,808 views

Published on

Presentation slides from talk at SaltConf2015.
SaltStack at Scale Automating Your Automation

Published in: Technology
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD FULL eBOOK INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL. PDF eBook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB eBook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. doc eBook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. PDF eBook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB eBook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. doc eBook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookeBOOK Crime, eeBOOK Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • @Evan Borgstrom Thanks Evan! We hope to continue to improve and build on this model.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Great presentation, Steven. I really like how you & your team have setup testing with Vagrant for your formulas.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

SaltConf2015: SaltStack at Scale Automating Your Automation

  1. 1. 1 Saltstack at Scale: Automating the Automation Steven Gonzales | EMC | Principal Software Engineer #SaltConf15
  2. 2. 2 • We build and run BIG clouds • Object Storage • Remote teams • Smart people • SRE/DEV • We are hiring! EMC2 CLOUD SERVICES
  3. 3. 3 • Exabyte+ Object Storage • Datacenters around the world • 10,000+ nodes • 14+ Salt Masters SALT AT SCALE WHAT DO WE MEAN BY SCALE?
  4. 4. 4 STARTING OUT FIRST FLIGHT WITH SALT
  5. 5. 5 • Salt Version 0.17.x • Tool for remote command execution • Developed use of states • Monolithic Salt repo • Used in only one project STARTING OUT FIRST FLIGHT WITH SALT
  6. 6. 6 • Poor code reuse across projects • Divergent copies across projects • Difficult to deploy pillar/states • Hard to test • Lack of consistent patterns STARTING OUT FIRST FLIGHT WITH SALT
  7. 7. 7 • Version control • Design patterns • Code reuse • Testing • Deployment • Build system! INFRASTRUCTURE AS CODE TREAT IT LIKE A SOFTWARE PRODUCT
  8. 8. 8 ENTER THE FORMULA PATTERNS & PRACTICES
  9. 9. 9 • Promotes code reuse • End divergence • Project repos should only contain pillar data • Test states independently • Still needs standards SALT FORMULAS WHY FORMULAS?
  10. 10. 10 SALT FORMULA LAYOUT • _modules and _states • Debian packaging • The states folder (i.e.: docker) • Map.jinja • Test Directory • Makefile • Cookiecutter!
  11. 11. 11 • Map.jinja • Every setting is defined and has a default value • OS map, defaults, and pillar merged into settings dict • Pillar acts as an override • One place to see configuration options SALT FORMULAS SETTINGS & CONFIGURATION
  12. 12. 12 SALT FORMULA SETTINGS & CONFIGURATION • States and templates access all data though the settings dict
  13. 13. 13 • Provision VMs • Built-in Salt provisioner • Fast for local testing • Disposable environment • Private Networks • Vagrant up! SALT FORMULAS TESTING WITH VAGRANT
  14. 14. 14 • Write functional tests in python • Nosetests • Tox • Execute against the Vagrant environment SALT FORMULAS PYTHON TEST TOOLS
  15. 15. 15 • Install to /srv/formula • Support installing _modules and _states • Support versioning & dependencies • Easy rollback • Not every network has access to Git SALT FORMULAS HOW TO INSTALL?
  16. 16. 16 • Don’t reinvent the wheel! • `apt-get install salt-formula` SALT FORMULAS INSTALL WITH SYSTEM PACKAGES
  17. 17. 17 AUTOMATING THE AUTOMATION BUILD AND DEPLOYMENT
  18. 18. 18 • Salt-formula • Bootstraps salt masters/minions • Installs formulas/pillar from system pkgs • Salt masters highstate themselves SALT INCEPTION CORE TO AUTOMATION
  19. 19. 19 • Formulas have devel and master branches • Developers PR against devel • Merged to master after successful build/testing WORKFLOWS GIT BRANCHING
  20. 20. 20 • Build server Go.cd • Dashboard of build status • Pipeline Templates • Pipelines for devel and master • Notifications WORKFLOWS AUTOMATING THE BUILD
  21. 21. 21 • Vagrant up & execute functional tests • Build a package • Push package into repo • Devel to testing repo, master to prod repo WORKFLOWS BUILD STEPS
  22. 22. 22 WORKFLOWS FORMULA DEPENDENCIES
  23. 23. 23 • Developers PR to merge to devel • Build, package, & push to test repo • Auto-install to test environment • Merge devel to master • Build, package, & push to prod repo • Ready for Production WORKFLOW THE FULL PIPELINE
  24. 24. 24 • Still plenty to convert to formulas • Tests for pillar data • Improve tooling for formula dependencies • Expanded use of external pillar NEXT STEPS ALWAYS ROOM TO IMPROVE
  25. 25. 25 Thoughtworks Go.cd: Continuous build and delivery system http://www.go.cd/ Vagrant: Lightweight VM provisioning software https://www.vagrantup.com/ Tox Automation Project: Python test automation for running tests inside a virtual environment https://tox.readthedocs.org USEFUL LINKS Nosetests: Python Test Runner https://nose.readthedocs.org Cookiecutter: Project for rendering new projects from a jinja template https://cookiecutter.readthedocs.org

×