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
Slide 2
Slide 2 text
●Phil Huang
○ ONOS/CORD Ambassador
○ SDNDS-TW Co-Founder
○ Edgecore Open Networking Solution Engineer
○ Blog
■ blog.pichuang.com.tw
Who am I?
2
Slide 3
Slide 3 text
3
Related Open Source Projects with Open CORD
Slide 4
Slide 4 text
• 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
Slide 5
Slide 5 text
• 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?
Slide 6
Slide 6 text
6
Ansible Structure
Slide 7
Slide 7 text
7
Ansible Module
Ref: https://github.com/opencord/cord/ansible
Inventory
Playbook
All of Roles
Variable
Slide 8
Slide 8 text
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