27
v Simplifying the Network with Ansible & Cumulus® Linux® Sep 3 rd 2014

Ansible & Cumulus Networks - Simplify Network Automation

Embed Size (px)

DESCRIPTION

Reacting to business requests promptly requires the ability to make changes quickly not just at the application layer, but also at the network layer. Ansible is a simple answer to this problem, providing both a human-readable automation language and an agentless management solution for operating systems, applications, and network devices. Cumulus is one of the easiest network solutions to manage with Ansible due to it presenting the network hardware as Native Linux.Together, Ansible and Cumulus can radically simplify the nature of modern IT management, and we'll show more of how they play together in this joint presentation.

Citation preview

Page 1: Ansible & Cumulus Networks - Simplify Network Automation

v

Simplifying the Network with Ansible &

Cumulus® Linux®

Sep 3rd 2014

Page 2: Ansible & Cumulus Networks - Simplify Network Automation

Introduction

Michael DeHaan CTO, Ansible Inc.

Meena Sankaran Ecosystem & Solutions

Cumulus Networks

Page 3: Ansible & Cumulus Networks - Simplify Network Automation

The Ansible Project

§  Open Source IT Automation Tool §  Top 5 Project on GitHub last year for numbers of contributors

(now ~840) §  7500+ stars, 2200 Forks, Millions of Downloads

Page 4: Ansible & Cumulus Networks - Simplify Network Automation

Example Ansible Users

Page 5: Ansible & Cumulus Networks - Simplify Network Automation

Why Ansible ?

§  Automation language approaches English

§  Order-based, well suited for both imperative and declarative operations

§  Designed from Day 1 for Multi-Tier Operation

§  Agentless: No Extra Software Install Required

§  Uses Native SSH, which you already have

Page 6: Ansible & Cumulus Networks - Simplify Network Automation

Example of Playbook Language

Example of Playbook Language

Page 7: Ansible & Cumulus Networks - Simplify Network Automation

Ansible, Inc.

§  Company behind Ansible §  Produces Ansible-Tower, a GUI and Central Server automation solution for

Ansible, also offers support/services

Page 8: Ansible & Cumulus Networks - Simplify Network Automation

ansible.com/tower Optional Central Console Logging, RBAC, Compliance

Scheduling Push Button Automation

Ansible Tower

Page 9: Ansible & Cumulus Networks - Simplify Network Automation

Benefits of Ansible + Cumulus Linux

§  Cumulus exposes IT automation as native Linux §  Ansible can treat Cumulus Linux powered hardware as just another computer §  Config files are extremely simple to template and deploy §  A single point of management for both compute and networking infrastructures §  Powerful support for role-based and team-based access to management

Page 10: Ansible & Cumulus Networks - Simplify Network Automation

Unifying The Automation Stack

§  Cloud/Virt Provisioning (ex: OpenStack) §  Base OS configuration §  Application Deployment §  Application Lifecycle §  Network Device Configuration

Page 11: Ansible & Cumulus Networks - Simplify Network Automation

Best of Networking and Linux come together

What is Cumulus® Linux®?

§  IPv4/IPv6 routing and bridging at line rate

§  Network Operating System and App Ecosystem

§  Cumulus® Linux® is Linux®

A multi-platform operating system for networking hardware that makes building, managing and automating massive-capacity next-generation datacenter networks simple.

Page 12: Ansible & Cumulus Networks - Simplify Network Automation

®

Cumulus® Linux®

Open Networking Hardware

Empowered Natively by Linux Tools

v No vendor lock-in

NW Automation Routing Monitoring Other NW Virtualization Orchestration

Choice of Apps - Rich Open Ecosystem

Page 13: Ansible & Cumulus Networks - Simplify Network Automation

The Modern Datacenter with Cumulus® Linux® and Ansible

Problems trying to be solved: §  Rapid network provisioning §  Automation of Routine Tasks §  Next-Gen Ideas to make Networks Smarter Lets talk some scenarios where this makes sense for switches……

Host running Ansible (could be a Cumulus Linux on a Bare Metal Switch, or VM, etc)

OOBM

Page 14: Ansible & Cumulus Networks - Simplify Network Automation

The Modern Datacenter with Cumulus® Linux® and Ansible

OOBM

Scenario 1: Rapid Network Provisioning

Page 15: Ansible & Cumulus Networks - Simplify Network Automation

The Modern Datacenter with Cumulus® Linux® and Ansible

OOBM

Scenario 1: Rapid Network Provisioning

eBGP tcp multipath

AS65001

AS65002

AS65003

AS65004

AS65005

AS65006

AS65007

AS65008 AS65009 AS65010 AS65011

Page 16: Ansible & Cumulus Networks - Simplify Network Automation

Ansible Snapshot -1

PLAY RECAP ***************************************************************host0 : ok=6 changed=5 unreachable=0 failed=0 leaf0 : ok=10 changed=9 unreachable=0 failed=0 leaf1 : ok=10 changed=9 unreachable=0 failed=0 leaf2 : ok=10 changed=9 unreachable=0 failed=0 leaf3 : ok=10 changed=9 unreachable=0 failed=0 tier1spine0 : ok=10 changed=9 unreachable=0 failed=0 tier1spine1 : ok=10 changed=9 unreachable=0 failed=0 tier1spine2 : ok=10 changed=9 unreachable=0 failed=0 tier1spine3 : ok=10 changed=9 unreachable=0 failed=0 tier2spine0 : ok=10 changed=9 unreachable=0 failed=0 tier2spine1 : ok=10 changed=9 unreachable=0 failed=0 tier2spine2 : ok=10 changed=9 unreachable=0 failed=0 tier2spine3 : ok=10 changed=9 unreachable=0 failed=0

Page 17: Ansible & Cumulus Networks - Simplify Network Automation

The Modern Datacenter with Cumulus® Linux® and Ansible

OOBM

Scenario 2: Hot Swapping The Whole Switch

Page 18: Ansible & Cumulus Networks - Simplify Network Automation

PLAY RECAP ******************************************************************** host0 : ok=4 changed=0 unreachable=0 failed=0 leaf0 : ok=7 changed=0 unreachable=0 failed=0 leaf1 : ok=7 changed=0 unreachable=0 failed=0 leaf2 : ok=7 changed=0 unreachable=0 failed=0 leaf3 : ok=7 changed=0 unreachable=0 failed=0 tier1spine0 : ok=7 changed=0 unreachable=0 failed=0 tier1spine1 : ok=10 changed=9 unreachable=0 failed=0 tier1spine2 : ok=7 changed=0 unreachable=0 failed=0 tier1spine3 : ok=7 changed=0 unreachable=0 failed=0 tier2spine0 : ok=7 changed=0 unreachable=0 failed=0 tier2spine1 : ok=7 changed=0 unreachable=0 failed=0 tier2spine2 : ok=7 changed=0 unreachable=0 failed=0 tier2spine3 : ok=7 changed=0 unreachable=0 failed=0

Ansible Snapshot - 2

Page 19: Ansible & Cumulus Networks - Simplify Network Automation

The Modern Datacenter with Cumulus® Linux® and Ansible

OOBM

Scenario 3: Configuration Management

Page 20: Ansible & Cumulus Networks - Simplify Network Automation

Ansible Snapshot - 3

TASK: [demo| configure /etc/network/interfaces] ************************ ok: [tier1spine0] ok: [tier1spine2] ok: [tier2spine0] ok: [tier1spine3] changed: [tier1spine1] ok: [tier2spine1] ok: [tier2spine3] ok: [tier2spine2]

Page 21: Ansible & Cumulus Networks - Simplify Network Automation

The Modern Datacenter with Cumulus® Linux® and Ansible

OOBM

Scenario 4: Gracefully Change the Network

Leaf3 Leaf7y

Spine2

Page 22: Ansible & Cumulus Networks - Simplify Network Automation

Scenario 4: Gracefully Change the Network

The Ansible Playbook: •  configure Spine2 with higher metric (OSPF cost or

prepend AS for BGP) to make it less desirable •  check routes on Leaf3 to make sure Spine2 is no

longer being used

•  Update network admin to let him know Spine2 is ready for decommissioning

Page 23: Ansible & Cumulus Networks - Simplify Network Automation

The Modern Datacenter with Cumulus® Linux® and Ansible

OOBM

Scenario 4: Gracefully Change the Network

Leaf3 Leaf7

Spine2 (B)

Page 24: Ansible & Cumulus Networks - Simplify Network Automation

Next Steps

§ Resources available at http://cumulusnetworks.com/solutions/networking-automation/

§  Cumulus Workbench §  GitHub – Sample Configuration §  Demo Videos §  Blog Posts §  Knowledge Base Articles §  User-Guides

§ Customer Support available through the sales field teams at Ansible and Cumulus Networks

Page 25: Ansible & Cumulus Networks - Simplify Network Automation

Demo Topology – 2 Leaf , 2 Spine

Page 26: Ansible & Cumulus Networks - Simplify Network Automation
Page 27: Ansible & Cumulus Networks - Simplify Network Automation

© 2014 Cumulus Networks. Cumulus Networks, the Cumulus Networks Logo, and Cumulus Linux are trademarks or registered trademarks of Cumulus Networks, Inc. or its affiliates in the U.S. and other countries. Other names may be trademarks of their respective owners. The registered trademark Linux® is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis.

§ Thank You!

Bringing the Linux Revolution to Networking