Unattended Deployment with Zero Touch Provisioning (ZTP)

Download Unattended Deployment with Zero Touch Provisioning (ZTP)

Post on 13-Jul-2015




0 download

Embed Size (px)


  • v

    Unattended Datacenter Deployment with ZTP

    Leslie Carr October 15, 2014

  • Who is Leslie?

    !Operations Engineer ! Google ! Craigslist ! Twitter ! Wikimedia Foundation


  • Who is Leslie?

    !Cumulus Networks

  • What is Cumulus Linux?

    !Cumulus Linux ! Debian based distribution for Network switches

    Cumulus Philosophy ! Manage your network switch as a server ! Use existing linux tools to configure network switches ! Current release Based on Debian wheezy

  • Cumulus Linux Hardware Compatibility List

    cumulusnetworks.com 4

  • v

    Installation and Configuration

  • Traditional Network Gear Process

    ! Comes preinstalled with (old) software ! Telnet or serial into box ! TFTP new image ! Enable SSH (sometimes with passwords!) ! Copy/paste configuration ! Automation usually restricted to Perl, TCL, and expect


  • Normal Server Installation

    ! Reboot and bios with PXE automatically catches ! TFTP boot image ! New image pulled over via normal means (usually

    webserver, sometimes TFTP) ! Pre/post installation scripts runs ! Automation software manages configuration and


  • Network OS installer discovery and execution ! Like a pre-installed BIOS, PXE, and kickstarter in one ! Implemented through Linux kernel with BusyBox

    Donated to the Open Compute Project (OCP) http://www.onie.org


  • Comparison

    bare metal server

    Server OS

    app app app

    BIOS and PXE

    bare metal switch

    Network OS

    app app app

    Boot Loader and ONIE

    Similar to installing a server OS using PXE

    Network OS Boot Loader and ONIE

    boot into

    Boot Loader and ONIE

    boot into

    ONIE looks for and installs network OS image

  • Cumulus Linux OS Installation with ONIE

    cumulusnetworks.com 10

    !Look for installer (discover) ! Locally, e.g. USB if available ! Over the network on eth0 DHCP, IPv6 neighbor, TFTP

    !Search for file name and execute ! onie%installer%*,



    Cumulus Linux OS image

  • ! ZTP script execution is triggered on DHClient exit or by USB Stick

    USB support in releases 2.5 and up

    ! Script must contain CUMULUS%AUTOPROVISIONING,,! Can be in the following languages :

    Perl Python Ruby Shell

    ZTP Execution

  • ZTP Script USB

    USB looks for a specific file name waterfall waterfall,=,[,


  • ZTP with DHCP example dhcp.conf

    ! ddns%update%style,none;,! default%lease%time,4320;,! max%lease%time,8640;,! authoritative;,

    ! option&cumulus,provision,url&code&239&=&text;&

    ! subnet,,netmask,,{,! ,range,,;,! ,option,routers,;,! ,option,domain%name%servers,;,! ,option,domain%name,"lab.mycompany.com";,! &option&cumulus,provision,url&"";&! },

  • During the DHCP process over eth0 (management interface), Cumulus Linux will request DHCP option 239. This option is used to specify the custom provisioning script. It will also send the following headers:



  • ZTP Example with Puppet







  • Video

  • /var/lib/cumulus/autoprovision.conf

    ! [discovery],! count,=,1,! max,=,32,

    ! [provisioning],! enabled,=,True,! complete&=&True&! datetime,=,1413314146,! method,=,DHCP,Option,! detail,=,,

  • !Because Debian based, we can do everything via puppet ! users ! interface configuration ! routing software (Quagga) configuration


  • Video!

  • ZTP Example with Ansible



  • Video

  • Success!

  • ! ZTP ! http://cumulusnetworks.com/docs/2.2/user-guide/

    system_management_diagnostics/provisioning.html Example Code

    ! https://github.com/CumulusNetworks/cldemo Cumulus Workbench

    ! http://cumulusnetworks.com/cumulus-workbench/ Twitter

    ! @lesliegeek

    Find out more!

  • 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