source: installer/terraform/main.tf @ 915580e

configure-oglivelgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change on this file since 915580e was 915580e, checked in by Nicolas Arenas <nicolas.arenas@…>, 19 months ago

Merge branch 'terraform-clients'

  • Property mode set to 100644
File size: 1019 bytes
Line 
1terraform {
2  required_version = ">= 0.12"
3  backend "local" {
4  }
5  required_providers {
6    esxi = {
7      source = "qindel.com/narenas/esxi"
8      version = "~> 0.1"
9    }
10  }
11}
12
13provider "esxi" {
14  esxi_hostname      = "esxi-jenkins.evlt.uma.es"
15  esxi_hostport      = "22"
16  esxi_hostssl       = "443"
17  esxi_username      = "root"
18  esxi_password      = var.vi_password
19}
20
21resource "esxi_guest" "vmtest-tf" {
22  count                   = var.num_clients
23  guest_name              = format("%s-%s","pc11-vagrant-esxi", count.index)
24  disk_store              = "almacen.00"
25  boot_disk_size          = 50
26  memsize                             = 1024
27  power                   = "off"
28  numvcpus                = 1
29  #
30  #  Specify an existing guest to clone, an ovf source, or neither to build a bare-metal guest vm.
31  #
32  nested_esxi        = "y"
33
34  network_interfaces {
35    virtual_network = var.virtual_netowrk
36    nic_type        = "e1000"
37    mac_address     =  format("%s:%s",var.mac_prefix, sum([11 , count.index]))
38  }
39}
Note: See TracBrowser for help on using the repository browser.