Cisco UCS Agentless Configuration Management Ansible or Microsoft DSC

Similar documents
Managing Cisco UCS with the Python SDK

Cisco UCS PowerTool Deploy at Scale

NXOS in the Real World Using NX-API REST

NetDevOps Style Configuration Management for the Network

DEVNET Introduction to Git. Ashley Roach Principal Engineer Evangelist

CloudCenter for Developers

Cisco Spark Messaging APIs - Integration Platforms as a Service Real World Use-Cases

Hands-On with IoT Standards & Protocols

DevNet Workshop-Hands-on with CloudCenter and Jenkins

Your API Toolbelt Tools and techniques for testing, monitoring, and troubleshooting REST API requests

Automation and Programmability using Cisco Open NXOS and DevOps Tools

Automation with Meraki Provisioning API

An Introduction to Monitoring Encrypted Network Traffic with "Joy"

Get Hands On With DNA Center APIs for Managing Intent

Git, Atom, virtualenv, oh my! Learn about dev tools to live by!

Cisco Spark Widgets Technical drill down

Finesse APIs: Getting started with the REST APIs and XMPP events

Introduction to OpenConfig

Coding Getting Started with Python

WORKSHOP: from Zero to a Network Application with #golang

Hands On Exploration of NETCONF and YANG

Managing The Digital Network Workforce Transformation

Empower your testing with Cisco Test Automation Solution Featuring pyats & Genie

An Introduction to Developing for Cisco Kinetic

Deploying Cloud-Agnostic Applications with Cisco CloudCenter

Creating a custom gadget using the Finesse JavaScript Library API

Hybrid Cloud Automation using Cisco CloudCenter API

European DevNet Pros Panel

BGP in the Enterprise for Fun and (fake) Profit: A Hands-On Lab

TRex Realistic Traffic Generator

Spark SDK Video - Overview and Coding Demo

NetDevOps for the Network Dude How to get started with API's, Ansible and Python

Kuber-what?! Learn about Kubernetes

DevOps CICD for VNF a NetOps Approach

Magical Chatbots with Cisco Spark and IBM Watson

Cisco SD-Access Hands-on Lab

Privacy Requirements Scoping

Getting Started with OpenStack

PnP Deep Dive Hands-on with APIC-EM and Prime Infrastructure

VXLAN EVPN Fabric and automation using Ansible

Cisco Spark. Questions? Use Cisco Spark to communicate with the speaker after the session. How

NSO in Brownfield: Fully Automated One-Click Reconciliation

Who wants to be a millionaire? A class in creating your own cryptocurrency

Coding Intro to APIs and REST

2018 Cisco and/or its affiliates. All rights reserved. Cisco Public

Cloud Mobility: Meraki Wireless & EMM

Cisco DNA Center and Italtel Netwrapper Evolution: Network and Applications come together

Cisco UCS Director and ACI Advanced Deployment Lab

Getting Started With Containers

Tour the latest Cisco Spark API features

Cisco Container Platform

Insights into your WLC with Wireless Streaming Telemetry

Cisco WAN Automation Engine (WAE) Network Programmability with Segment Routing

Cisco Firepower NGIPS Tuning and Best Practices

Cisco Enterprise Agreement

BRKCOC-2399 Inside Cisco IT: Integrating Spark with existing large deployments

Routing Underlay and NFV Automation with DNA Center

Consuming Model-Driven Telemetry

Serviceability of SD-WAN

Tetration Hands-on Lab from Deployment to Operations Support

Customer s journey into the private cloud with Cisco Enterprise Cloud Suite

How to be a Network Engineer in a Programmable Age Cisco DevNet Webinar Series

ICE / TURN / STUN Tutorial

Orange: Cisco & Orange: a human touch for a digital experience

Catalyst 9K High Availability Lab

Ipswitch: The New way of Network Monitoring and how to provide managed services to its customers

Zero-Touch Operations - Managing Your Network as Code

Internet of Things Field Network Director

Model-Driven Telemetry and Analytics

Building Applications with IOx

Introducing Cisco Network Assurance Engine

Cloud-Ready WAN For IAAS & SaaS With Cisco s Next- Gen SD-WAN

NetDevOps Style Configuration Management for the Network

Cisco VIRL. The Swiss-Army Knife of Network Simulators. Simon Knight, Software Engineer Brian Daugherty, Technical Leader.

Cisco SD-Access Building the Routed Underlay

Simplifying Collaboration Deployments with Prime Collaboration

NetBrain Technologies: Achieving Agile Network Operations: How Automation Can Improve Visibility Across Hybrid Infrastructures

PSOACI Tetration Overview. Mike Herbert

DevNet Workshop-Learning Cisco platform Exchange Grid (pxgrid) Dynamic Topics

The Transformation of Media & Broadcast Video Production to a Professional Media Network

Introduction to Cisco SD- WAN (Viptela)

Migrating Applications with CloudCenter

Machine Learning with Python

Inside Cisco IT: Automated end user services via Cisco Prime Service Catalog, Process Orchestrator and AppDynamics

Multi-Cloud and Application Centric Modeling, Deployment and Management with Cisco CloudCenter (CliQr)

Threat Centric Network Security

UCS Management Deep Dive

Application Hosting in IOS-XE

Delivering HCI with VMware vsan and Cisco UCS

Cisco pxgrid: A New Architecture for Security Platform Integration

Sample Runbooks. Add Service Profile From Template CHAPTER

Introduction to Cisco IoT Tools for Developers IoT 101

PSOACI Why ACI: An overview and a customer (BBVA) perspective. Technology Officer DC EMEAR Cisco

Automating Cisco Spark with Cloud Integration Cisco DevNet Webinar Series

Cisco SD-WAN (Viptela) Migration, QoS and Advanced Policies Hands-on Lab

Real time Location Services Overview and Use cases

Radware: Anatomy of an IoT Botnet and Economics of Defense

Building a Video Optimized Private Cloud Platform on Cisco Infrastructure Rohit Agarwalla, Technical

OpenStack Enabling DevOps Shannon McFarland CCIE #5245 Distinguished DEVNET-1104

Enterprise Recording and Live Streaming Architecture with VBrick

Transcription:

DEVNET-2916 Cisco UCS Agentless Configuration Management Ansible or Microsoft DSC John McDonough, Technical Leader Developer Evangelist

Cisco Spark How Questions? Use Cisco Spark to communicate with the speaker after the session 1. Find this session in the Cisco Live Mobile App 2. Click Join the Discussion 3. Install Spark or go directly to the space 4. Enter messages/questions in the space cs.co/ciscolivebot#devnet-2916 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public

Agenda DEVNET 2916 Cisco UCS Agentless Configuration Management - Ansible or Microsoft Desired State Configuration What is Angentless Configuration Management UCS Ansible Who / Where / What / How Install Demo UCS Microsoft DSC Who / What / Where / How Install Demo Conclusion

What is Agentless Configuration Management

What is Agentless Configuration Management Agentless Configuration Management Managed devices do not have an agent listening for updates Updates are pushed to managed devices Scripts or API calls are executed on the managed devices No timers are on the managed devices Control is maintained by the configuration management master Author Configuration Push Configuration DEVNET-2916 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 6

UCS Ansible

Who / Where / What Who UCS Ansible is currently maintained by UCS Engineering and some UCS TMEs, SEs, and DevNet DEs (Developer Evangelists) Where Github ucsm-ansible https://github.com/ciscoucs/ucsm-ansible This will be changing beginning with the Ansible 2.5 release New UCS Ansible modules will be added directly to the Ansible release Pre Ansible 2.5 UCS modules will gradually be deprecated and moved to Ansible repository What Current requirements Python 2.7 ucsmsdk, ucsm-ansible, ucsm_apis DEVNET-2916 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 8

How Module cisco_ucs_ntp.py DEVNET-2916 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 9

How Playbook (yaml) --- - hosts: localhost connection: local gather_facts: no roles: - common - hosts: ucs connection: local gather_facts: no tasks: - name: enable ntp cisco_ucs_ntp: name: "{{ntp_server}}" descr: Ansible managed NTP state: present ucs_ip: "{{ucs_ip}}" ucs_username: "{{ucs_username}}" ucs_password: "{{ucs_password}}" DEVNET-2916 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 10

Install https://github.com/ciscoucs/ucsm-ansible 1. Ansible sudo pip install ansible 2. ucsmsdk the latest git clone https://github.com/ciscoucs/ucsmsdk cd ucsmsdk sudo make install 3. ucsm_apis the latest git clone https://github.com/ciscoucs/ucsm_apis cd ucsm_apis sudo make install 4. ucsm-ansible modules git clone https://github.com/ciscoucs/ucsm-ansible cd ucsm-ansible sudo python install.py DEVNET-2916 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 11

Demo

UCS PowerTool Microsoft DSC

Who / Where / What Who UCS PowerTool is currently maintained by UCS Engineering Where cisco.com UCS PowerTool Download, https://software.cisco.com/portal/pub/download/portal/select.html?&mdfid=286305108&fl owid=79283&softwareid=284574017 UCS PowerTool DSC module is packaged with UCS PowerTool as of version 2.X What Current requirements Windows Desktop PowerShell UCS PowerTool DEVNET-2916 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 14

How UCS PowerTool and MOF Files UCS PowerTool Connect to UCS Manager perform Object Actions Managed Object Format MOF Files Declare Object Actions DEVNET-2916 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 15

How $ConfigData= @{ AllNodes = @( @{ NodeName = "172.22.250.181" PsDscAllowPlainTextPassword = $true }; @{ NodeName = "172.22.250.183" PsDscAllowPlainTextPassword = $true }; ); } Configuration AutoGeneratedDSCConfig { param( [Parameter(Mandatory=$true)] [PsCredential] $ucscredential, [Parameter(Mandatory=$true) [string] $ucsconnectionstring ) Import-DSCResource -ModuleName Cisco.Ucs.DesiredStateConfiguration one line Node "172.22.250.181" { UcsManagedObject vlan200 { Ensure = "Present" } ModifyPresent = $false ClassId= "fabricvlan" Dn = "fabric/lan/net-vlan200" PropertyMap= "Id = 200 `nname = vlan200" UcsCredentials = $ucscredential UcsConnectionString = $ucsconnectionstring Identifier = "vlan200" } Node "172.22.250.183" { UcsManagedObject vlan201 { Ensure = "Present" ModifyPresent = $false ClassId= "fabricvlan" Dn = "fabric/lan/net-vlan201" PropertyMap= "Id = 201 `nname = vlan201" UcsCredentials = $ucscredential UcsConnectionString = $ucsconnectionstring Identifier = "vlan201" } $connectionstring = "Name=172.22.251.170" $credential = Get-Credential AutoGeneratedDSCConfig -UcsConnectionString $connectionstring -ConfigurationData $ConfigData -ucscredential $credential one line, creates MOF files DEVNET-2916 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 16

Install DEVNET-2916 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 17

Demo

Conclusion

Get hands-on with APIs and SDKs in the DevNet Zone LEARN CODE INSPIRE CONNECT In the DevNet Zone we offer: Classrooms Learn about a specific topic/technology NEW! Hack, Defend and Win! Embrace your inner hacker, then defend the network! Black Hat, White Hat Security Challenge DevNet Sandbox Explore free technology-packed 24x7 labs and play IoT foosball! Go for a 5-minute mini-hack challenge or complete all three in 15- minutes to win Learning Labs Find an open seat to start coding with self-paced tutorials (experts available) Panels Get inspired & interact with industry experts Connected Women s Event Join Susie Wee on Monday for this event followed by a DevNet Zone open house NEW! Application Developer Zone and Challenge Win a special-edition t-shirt and bragging rights complete a learning lab, a workshop, and an application developer demo Demos Exciting demos and inspiring partner solutions showcase Join DevNet! developer.cisco.com/join/cleur1 8 All DevNet members win a prize, visit the Info Desk to learn more! Workshops code with an instructor in @CiscoDevNet #DevNet #CLEUR

Hack, Defend, and Win! Come play the Black Hat, White Hat Security Challenge in the DevNet Zone! >>> Hack Embrace your inner hacker and try to access the network >>> Defend Be the heavily-armed Cisco defender that saves the day >>> Win Collect your prize and claim your bragging rights @CiscoDevNet #DevNet #CLEUR

Cisco Spark How Questions? Use Cisco Spark to communicate with the speaker after the session 1. Find this session in the Cisco Live Mobile App 2. Click Join the Discussion 3. Install Spark or go directly to the space 4. Enter messages/questions in the space cs.co/ciscolivebot#devnet-2916 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public

Please complete your Online Session Evaluations after each session Complete 4 Session Evaluations & the Overall Conference Evaluation (available from Thursday) to receive your Cisco Live T-shirt All surveys can be completed via the Cisco Live Mobile App or the Communication Stations Complete Your Online Session Evaluation Don t forget: Cisco Live sessions will be available for viewing on-demand after the event at www.ciscolive.com/global/on-demand-library/. 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public

Continue Your Education Demos in the Cisco campus Walk-in Self-Paced Labs Tech Circle Meet the Engineer 1:1 meetings Related sessions DEVNET-2916 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 24

Thank you