Coder Social home page Coder Social logo

clone_tools's Introduction

clone_tools.py

Pysphere implementation to clone or deploy multiple VMs

 ./clone_tools.py -h
usage: clone_tools.py [-h] -s SERVER -u USERNAME [-p PASSWORD] -m VMNAME
                          [-v] [-d] [-l LOGFILE] [-V]
                          {single,bulk} ...

Deploy a template into multiple VMs or clone a single VM

positional arguments:
  {single,bulk}         commands
    single              Deploy or clone just one VM
    bulk                Deploy or clone multiple VMs

optional arguments:
  -h, --help            show this help message and exit
  -s SERVER, --server SERVER
                        The vCenter or ESXi server to connect to
  -u USERNAME, --user USERNAME
                        The username with which to connect to the server
  -p PASSWORD, --password PASSWORD
                        The password with which to connect to the host. If not
                        specified, the user is prompted at runtime for a
                        password
  -m VMNAME, --vm VMNAME
                        The Template deploy or Source Virtual Machine to clone
  -v, --verbose         Enable verbose output
  -d, --debug           Enable debug output
  -l LOGFILE, --log-file LOGFILE
                        File to log to (default = stdout)
  -V, --version         show program's version number and exit

Single clone

usage: clone_tools.py single [-h] -tn TARGETNAME -pu {Dev,QA,Prod,Test}
                                 -fo FOLDER -th TARGETHOST -td TARGETDS

optional arguments:
  -h, --help            show this help message and exit
  -tn TARGETNAME, --targetname TARGETNAME
                        Target VM name
  -pu {Dev,QA,Prod,Test}, --purpose {Dev,QA,Prod,Test}
                        Purpose of the VM
  -fo FOLDER, --folder FOLDER
                        Folder where new VM will be stored
  -th TARGETHOST, --targethost TARGETHOST
                        Target host
  -td TARGETDS, --targetds TARGETDS
                        Target datastore.

Bulk deploy

usage: clone_tools.py bulk [-h] -if INPUTFILE [-co {1,2,3}]

optional arguments:
  -h, --help            show this help message and exit
  -if INPUTFILE, --inputfile INPUTFILE
                        Full path of the CSV file in the following format:
                        vmName, purpose, folder, datastore, host
  -co {1,2,3}, --conncurrent {1,2,3}
                        Concurrent cloning processes. Only valid for VM
                        Templates and the maximum value is 4.

clone_tools's People

Stargazers

 avatar

Watchers

James Cloos avatar JM Lopez 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.