NetDevOps - Automation and Configuration Management using Ansible

NetDevOps - Automation and Configuration Management using Ansible

#netdevops #ansible #sdnds-tw

D907136acebc72f1df878541b26f271a?s=128

Phil Huang

May 12, 2017
Tweet

Transcript

  1. NetDevOps Automation and Configuration Management using Ansible Phil Huang <phil@cord-ambassadors.org>

    Open Networking Solution Engineer, Edgecore Networks Corporation 2017/5/11, SDNDS-TW Workshop 2017, Taiwan #OpenCORD #ONOSProject
  2. •Phil Huang ◦ ONOS/CORD Ambassador ◦ SDNDS-TW Co-Founder ◦ Edgecore

    Open Networking Solution Engineer ◦ Blog ▪ blog.pichuang.com.tw Who am I? 2
  3. 3 Related Open Source Projects with Open CORD

  4. • Open source automation platform • Configuration management • Application

    deployment • Orchestrate advanced IT tasks automatically • Continuous deployment & integration (CI/CD) • Rolling updates • Two method • Ad-hoc command • Playbook 4 Ansible
  5. • Simple • Easy to write, read and maintain •

    Fast to learn and setup • Use YAML that allow you describe automation jobs in a way that approaches plain English • Efficient • Doesn’t require a custom agent or software to install • Secure • Runs on OpenSSH 5 Why Ansible?
  6. 6 Ansible Structure

  7. 7 Ansible Module Ref: https://github.com/opencord/cord/ansible Inventory Playbook All of Roles

    Variable
  8. 8 Ansible Playbook – Spine Switch Ref: https://github.com/opencord/cord/blob/master/ansible/spineswitch.yml List of

    Roles in the playbook Choose specific host run the playbook
  9. 9 Ansible Roles Roles

  10. 10 Ansibe Roles -- Architechure Ref: http://docs.ansible.com/ansible/playbooks_best_practices.html Tasks Templates Files

  11. 11 Ansible Tasks Task 1 Task 2

  12. 12 Ansible Module in Tasks Template Module Command Module

  13. 13 Module Documentation

  14. 14

  15. 15

  16. 16 THANK YOU!