GithubHelp home page GithubHelp logo

sjhloco / csr1000v_vmware_deployment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aawarner/csr1000v_vmware_deployment

0.0 1.0 0.0 182.05 MB

Ansible tooling to deploy a single or multiple CSR1000v's from a template to an ESXi environment.

License: Other

csr1000v_vmware_deployment's Introduction

Build Status

published

CSR1000v Deployment Tool

Ansible playbook to deploy a single or multiple CSR1000v's from a template on ESXi through Vmware vCenter.

There are two playbooks in this tooling. One to deploy CSR1000v's from the inventory file and one to undeploy them.

Requirements

This role requires the vmware_guest module and Ansible 2.8. Tested environment consisted of ESXi 6.5 and vCenter 6.5. This role deploys the CSR1000v from a template. A VM template for the CSR1000v must already be defined in vCenter.

Setup

The "deploy-vm-template" role contains common bootstrap properties for each CSR1000v. Each CSR1000v is bootstrapped using vApp properties. In this example each CSR1000v is bootstrapped for programmability training. NETCONF, RESTCONF, and SSH are bootstrapped along with a user/pass of cisco/cisco.

Inventory

Look inside the example inventory file and update parameters as appropriate. The parameters in the inventory file are unique variables for each router. Configurable parameters include:

hostname
deploy_vsphere_datastore
guest_notes
inventory_ip

Role Variables

The "deploy-vm-template" and the "destroy-vm" role accept various variables including:

Vmware vCenter Environment

deploy_vsphere_host
deploy_vsphere_user
deploy_vsphere_password
deploy_vsphere_datacenter
deploy_vsphere_folder

CSR1000v Common Configuration

guest_memory
guest_vcpu
guest_disk
guest_template
router_gateway
port_group1
port_group2
port_group3

These variables can be found and modified in var.yml.

Usage

Deploy all routers in inventory

ansible-playbook -i inventory deploy-pods.yml

Deploy subset of routers in inventory

ansible-playbook -i inventory deploy-pods.yml --limit student-routers

Undeploy routers

ansible-playbook -i inventory undeploy-pods.yml

Demo

Deploy CSR1000v's

CSR Deploy Demo CSR Deploy Demo2 CSR Deploy Demo3

Destroy CSR1000v's

CSR Undeploy Demo

Contributing

See CONTRIBUTING

csr1000v_vmware_deployment's People

Contributors

aawarner avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.