Slide 1

Slide 1 text

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

Slide 9

Slide 9 text

9 Ansible Roles Roles

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

11 Ansible Tasks Task 1 Task 2

Slide 12

Slide 12 text

12 Ansible Module in Tasks Template Module Command Module

Slide 13

Slide 13 text

13 Module Documentation

Slide 14

Slide 14 text

14

Slide 15

Slide 15 text

15

Slide 16

Slide 16 text

16 THANK YOU!