Coder Social home page Coder Social logo

terraform-vsphere-multiple-vm's Introduction

TERRAFORM vSPHERE BUILD - MULTIPLE VMs

This is a basic build, which you can use to deploy a multiple VMs in the vSphere infrastructure. Please notice that here you do not have many options like additional disk or copy .vmdk file. Anyway you do not need to specify every variables in the each build - there are a lot of maps which help to provision your infrastructure.

This build can be helpful with:

  • deploy a new VM for some tests,
  • deploy many VM, one by one,
  • join infrastructure deploying to the Ansible builds,
  • be a part of some tests, based on VMs
  • many other cases.

You can find more details on my page, where I described how to deploy vSphere VM with Terraform. More information about deploying multiple VMs you can find also on my blog, just click here.

WARNING! Works only with Linux VMs!

Requirements

Valid installation of the vSphere with the vCenter Server

Variables

There are couple of variables. Some of them have default values. You should check all of them and ensure yourself that everything is valid for you Infrastructure deploy. This version has maps of variables, for example:

variable "vmgateway" {
  type = "map"
  default = {
    local.domain = "192.168.0.1"
    second.domain = "192.16.1.1"
  }
}

You need to create a file named terraform.tfvars in which you put your secrets and another custom variables. You can overwrite variables from the vars.tf file.

Please remember, that the most important variable is a vmdomain var (maps base on it), but you should specify the following variables:

viuser
vipassword
vmname
vmdomain
vmrp
vmdatastore
vmtemp

License

MIT

Author

Emil Wypych

terraform-vsphere-multiple-vm's People

Contributors

ewypych avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.