$30 off During Our Annual Pro Sale. View Details »

NetDevOps - Automation and Configuration Management using Ansible

NetDevOps - Automation and Configuration Management using Ansible

#netdevops #ansible #sdnds-tw

Phil Huang

May 12, 2017
Tweet

More Decks by Phil Huang

Other Decks in Technology

Transcript

  1. NetDevOps
    Automation and Configuration Management using Ansible
    Phil Huang
    Open Networking Solution Engineer, Edgecore Networks Corporation
    2017/5/11, SDNDS-TW Workshop 2017, Taiwan
    #OpenCORD #ONOSProject

    View Slide

  2. ●Phil Huang
    ○ ONOS/CORD Ambassador
    ○ SDNDS-TW Co-Founder
    ○ Edgecore Open Networking Solution Engineer
    ○ Blog
    ■ blog.pichuang.com.tw
    Who am I?
    2

    View Slide

  3. 3
    Related Open Source Projects with Open CORD

    View Slide

  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

    View Slide

  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?

    View Slide

  6. 6
    Ansible Structure

    View Slide

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

    View Slide

  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

    View Slide

  9. 9
    Ansible Roles
    Roles

    View Slide

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

    View Slide

  11. 11
    Ansible Tasks
    Task 1
    Task 2

    View Slide

  12. 12
    Ansible Module in Tasks
    Template
    Module
    Command
    Module

    View Slide

  13. 13
    Module Documentation

    View Slide

  14. 14

    View Slide

  15. 15

    View Slide

  16. 16
    THANK YOU!

    View Slide