Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Integrating Ansible Automation and ChatOps

Integrating Ansible Automation and ChatOps

In this session, I will briefly introduce about ChatOps concept and demo a real scenario of triggering a playbook with a chatbot.
And I will show how to set up a chat server and deal with the chats tasks in an intranet environment.

Hazel Shen

July 24, 2021
Tweet

More Decks by Hazel Shen

Other Decks in Technology

Transcript

  1. 2 Hi I am Hazel Shen. Solution Architect @Red Hat

    Taiwan Find me by: [email protected] https://hazel.style/ https://github.com/hazel-shen About Me
  2. 3 What is IT Automation Ref: https://www.redhat.com/en/topics/automation/whats-it-automation Automation Server Virtual

    Machine Provisioning Installation OS Dependencies Confidential Management Password Token Create Refresh Network Configuration Backup Configuration Firewall Rules Management DevOPs CI Approval CD
  3. 6 Ansible for Beginners Ad-hoc Playbbok Inventory List Modules Plugins

    API & Connector Private / Public Clouds Storages/ Databases Target Nodes Controlling Nodes User Ansible Components Command &Scripts
  4. 7 Ref: https://hazel.style/2021/05/28/How-to-contribute-your-first-Ansible-Collection-and-Ansible-Tower-Workflow-Use- Case/#more Contribute to Galaxy – Step 1

    ansible-galaxy collection init ${my_namespace}.${my_collection} Naming Principles - Namespace: What the collection related to ? - Collection: How the collection works ?
  5. What about my data? I haven’t backed them up !

    I was still on my way home 15 Ref: Copyright © 2011 Twentieth Century Fox Film Corporation. All rights reserved.
  6. 17 Chatbot Flows I – Active Trigger Rule pattern Backend

    service Rule Pattern command Session Start Trigger Return Result Return Message Chatbot Chatbot
  7. 18 ChatOps Flows II – Passive Reception Webhook Server Rule

    Pattern Rule Pattern Do something Backend Service Rule Pattern Send Bot Message Session Start Trigger command Return Result Return Message Return Message Chatbot Chatbot
  8. 21 Ref: https://softnshare.com/rocket-chat- %E9%96%8B%E6%BA%90%E7%9A%84%E5%9C%98%E9%9A%8A%E5%8D%B3%E6%99%82%E9%80%9A% E8%A8%8A%E7%B3%BB%E7%B5%B1/ - The open source communication

    platform which is similar to Slack. - Support self-managed server installation and container platform - Support video, audio and screen sharing (Technical supported by WebRTC) - Provide iOS/Android Apps What is