01-Psodcn-1002 (2021)
01-Psodcn-1002 (2021)
01-Psodcn-1002 (2021)
#CiscoLive
Agenda
• What is Infrastructure as Code
• Tools of the trade
• Demo
• Cisco IBN Providers and Collections
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
Infrastructure as Code (IaC) – What/Why/How
• Automate the provisioning and management of the technology
stack
• Translate manual tasks into reusable, robust, distributable code
• Rely on practices that have been successfully used for years in
software development (version control, automated testing, release
tagging, continuous delivery, etc.)
• Benefits: much higher delivery speed; significant reliability boost
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
What is Ansible?
• Open-source Configuration Management Tool
• Commercial support from RedHat
• Declarative (when possible) and idempotent
• Can manage a wide range of systems:
• VMs, network devices, cloud instances, etc.
• Agentless
• Python server-side dependencies
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
What is Terraform?
• Open-source Infrastructure Provisioning Tool
• Commercial support from HashiCorp
• Declarative and idempotent
• Immutable infrastructure concept
• Can manage a wide range of systems:
VMs, network devices, cloud instances, etc.
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
Ansible or Terraform?
• Both Ansible and Terraform can coexist
• It’s not an either/or story
• Terraform can call Ansible for ad-hoc tasks after deploying a VM
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
CI/CD Pipeline
• Continuous Integration (CI)
• Practice of merging all developer changes to a shared repo several times a day
• It main include the creation and test of artifacts (executable, app, …)
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
What a CI/CD workflow looks like
Source Pipeline
User Code
Control Engine APP
1 2 3 4
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Common components of a CI/CD Pipeline
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
Let’s see it in action!
Use Case
User want to access a new App in the DC from either SDA or SDWAN
SDA
APIC
Users DC App
SDWAN
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
Cisco Pairwise Integrations
APIC APIC
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
Use Case Single button to deploy all configurations using CI/CD pipeline
SDA
APIC
Users DC App
SDWAN
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
Our Multi-Domain CI/CD pipeline
APIC
ACI
SDWAN
SDA
VMware
APP
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
Cisco Intent-based Networking Collections
80+ modules 80+ modules 45+ modules 6+ modules 5+ modules 100+ modules 34+ modules
in in in in in in in
cisco.nxos cisco.aci cisco.mso cisco.nae cisco.dcnm cisco.dnac cisco.ios
Available Today
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
Cisco Intent-based Networking Providers
Data Center
ACI Multi Site DNA Center
Cloud / Onprem
Network
Orchestrator
Manager
Available Today
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
New DevNet Resources available!
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
• Infrastructure as Code is a journey.
Start it today!
Key Takeaways • Cisco products are designed to be
automated
• Ansible and Terraform can work
together
• Go learn with our DEVNET learning
labs
PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
Continue your education
Walk-in labs
Related sessions
#CiscoLive PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
• ACI Ansible Modules Documentation Guide
https://docs.ansible.com/ansible/latest/scenario_guides/guide_aci.html
References
https://github.com/CiscoDevNet/ansible-nae
https://github.com/CiscoDevNet/ansible-dcnm
https://github.com/CiscoDevNet/terraform-provider-aci
https://github.com/CiscoDevNet/terraform-provider-mso
https://github.com/CiscoDevNet/terraform-provider-dcnm
PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
• Demo Videos
• All things Ansible for ACI
https://www.youtube.com/watch?v=XQtqwZfiBMg
References (continued) • Making you network cloud native with Cisco ACI
and GitOps
https://youtu.be/VzYXCC4ExWE
PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
• What’s new and exciting on Cisco ACI with
Red Hat Ansible Collections
https://blogs.cisco.com/datacenter/whats-new-and-
exciting-on-cisco-aci-with-red-hat-ansible-collections
References (continued)
• Plenty of Cisco Live recorded sessions
• Webinars
• Building an automated hybrid multicloud with Cisco ACI
and HashiCorp Terraform
• Cisco ACI with HashiCorp Terraform
• Introduction to Terraform and ACI
• Redefining the Intelligent Network with Cisco ACI and
HashiCorp Consul
PSODCN-1002 © 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
Thank you
#CiscoLive
#CiscoLive