Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

ChatOps Workshop

176 visualizaciones

Publicado el

using Cisco Spark

Publicado en: Tecnología
  • Sé el primero en comentar

ChatOps Workshop

  1. 1. Find the slides here: http://tiny.cc/spark-chatops-workshop Follow me on Twitter and/or tweet at me. @tessamero By Tessa Mero Revolutionize Your Workflow With… ChatOps Workshop!
  2. 2. SUMMARY • Who Am I? • What is DevOps? • What is ChatOps? • Chat Tools • Bot Frameworks for ChatOps • Case Studies • Using Cisco Spark for ChatOps • Run a Python Script
  3. 3. Requirements • Cisco Spark https://web.ciscospark.com • Visual Studio Code https://code.visualstudio.com/ • Python
  4. 4. About Me
  5. 5. Developer Advocate
  6. 6. Instructor / Mentor
  7. 7. Community Leader
  8. 8. What is DevOps?
  9. 9. The process of getting multiple teams who are involved in the software process to talk to each other
  10. 10. DEVELOPMENT -> Code -> OPERATIONS (for deployment)
  11. 11. DevOps Adoption 2014: 34% (Source: Gartner Report) 2015: 66% (Source: Wikipedia) 2016: 74% (81% at larger companies, Source: Wikipedia)
  12. 12. Reasons for DevOps • 1 week of work will only take seconds • Use of Agile and other development processes • Demand for increased production releases • Wide availability of virtualized and cloud infrastructure • Increased usage of data center automation • More focus on test automation • DevOps being more known as the “best practice”
  13. 13. What is ChatOps
  14. 14. Term is created by Github in 2013
  15. 15. ChatOps is a way of collaborating which connects teams, tools, & processes to create an automated and transparent workflow
  16. 16. Image credit: Bill Doerrfled, Editor in Chief at NordicAPIs
  17. 17. You have Control of the Commands
  18. 18. Chat Tools
  19. 19. Bot Frameworks for ChatOps
  20. 20. HuBot • Written by GitHub • Open Source • Written in CoffeeScript on Node.js • Many core scripts to automate basic tasks • Huge package of scripts to add for ChatOps • Easily deploy to heroku https://hubot.github.com/
  21. 21. Lita • Written in Ruby • Free and Open Source • Works with all Chat Services • Many plugins to install https://www.lita.io/
  22. 22. Errbot • Easy to write plugins • Built in admin/security • Big Community • Written in Python https://errbot.io/
  23. 23. DevOps Tools for ChatOps
  24. 24. Case Studies
  25. 25. Example Usage of ChatOps • Incident Resolution • Automating Routine Tasks (Anything!) • Multiple Team collaboration • Onboarding new employees • Create new Virtual Machine with command • Notifications • Combining all tools used into your collaboration tool
  26. 26. Cisco DevOps Tools for ChatOps
  27. 27. Quotes by Developers (from Twitter)
  28. 28. “We use Hipchat to allow Jr Devs to Label PRs in Github for Review” - @philwinkle, designer at SomethingDigitl
  29. 29. “We spin up new VM with simple Bot commads” - @snair123
  30. 30. “I wrote a Chat bot that lets us look up customer information. ChatOps created a tool to allow re-assigning/re-creating Dev VM” - @halkeye, coder at SauceLabs
  31. 31. “Over the past few days, I’ve written a serverless based thing that will let you merge your own PRs from Slack” - @edyesed, DevOps Manager at RealSelf
  32. 32. “We get information from our ticketing system using a Cisco Spark bot” - @josebogarin, Chief Innovation Officer at Altuscr
  33. 33. Create a Cisco Spark Bot
  34. 34. Create New App
  35. 35. Fill In Bot Info
  36. 36. Create Room with Bot
  37. 37. Go to Spark API Docs - Rooms
  38. 38. fdsafdsa
  39. 39. Run API Request
  40. 40. Copy your Room ID
  41. 41. Clone the Code Sample
  42. 42. Run chatops.py File in Terminal
  43. 43. Got an error? Good! • Need to pass parameters • -r: the target Cisco Spark room identifier • -m: the text to be posted to Cisco Spark • -t: the access token used when invoking the Cisco Spark REST API • To Fix Error, type command:
  44. 44. Examining spark_it function
  45. 45. Examining the Variable
  46. 46. Launch .vscode/launch.json
  47. 47. Debug chatops.py • Runs the currently selected file in VS Code’s editor • Does not halt execution at first line of code • Passes in r and m paramters and sets the SPARK_ACCESS_TOKEN • Environment variable value on line 17 and 25 • Select line 30 and create a breakpoint • Hit F5 to run the debugger!!!
  48. 48. Congratulations! You have just run and debugged a ChatOps Script!
  49. 49. Additional Resources All in one ChatOps Resources: https://github.com/exAspArk/aw esome-chatops Cisco Spark Python module wrapper for creating robust scripts: https://github.com/CiscoDevNet/ ciscosparkapi
  50. 50. What Can You Do?
  51. 51. Thank You @tessamero Slides: http://tiny.cc/spark-chatops-workshop
  52. 52. Sources Nordicapis.com Infoworld.com Cio.com Techproresearch.com Opensource.com Atlassian.com

×