Code Monkey home page Code Monkey logo

ansible-vsphere_guest's Introduction

Ansible module that allows you to define and create a VMWare vsphere guest OS instance which can then be booted to start an automated install.

Here is an example of defining the guest:

- hosts: 127.0.0.1
  connection: local
  user: username
  sudo: false
  gather_facts: false
  serial: 1

  tasks:

    - vsphere_guest: > 
        vcenter_hostname='vcenter.host.edu' user='username' password='password' 
        datacenter="Dev_Datacenter" datastore="hit04_sata_datastore04" esxi_hostname="esx15.mgt.host.edu" 
        vm_name="romeotestvm" vm_memory_mb=2048 vm_num_cpus=2 vm_notes="woohoo" guestosid="rhel6_64Guest"
        power_on=yes
        args:
            vm_cdrom:
                type: "iso"
                iso_path: "hit04_iso_datastore/path/to/kickstart_boot.iso"
            vm_extra_config:
                vcpu.hotadd: 'TRUE'
                mem.hotadd:  'TRUE'            
            vm_disk:                
                disk1:                     
                    size_gb: 1
                    datastore: "hit04_sata_datastore04"
                    type: "thin"
                disk2:
                    size_gb: 2
                    datastore: "hit04_sata_datastore05"
                    type: "thin"
            vm_nic:
                nic1:
                    type: "vmxnet3"
                    network: "dv_172_16_4_0_24"
                    network_type: "dvs"
                nic2:
                    type: "vmxnet3"
                    network: "dv_128_171_16_0_24"
                    network_type: "dvs"

ansible-vsphere_guest's People

Contributors

rrtj3 avatar

Watchers

 avatar  avatar  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.