configure-oglivelgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change
on this file since 7485678 was
4bc4eb0,
checked in by Natalia Serrano <natalia.serrano@…>, 15 months ago
|
refs #162 update disk_store in terraform
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[915580e] | 1 | terraform { |
---|
| 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 | |
---|
| 13 | provider "esxi" { |
---|
[24a445d] | 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 |
---|
[915580e] | 19 | } |
---|
| 20 | |
---|
[f1abaf8] | 21 | resource "esxi_guest" "modelo" { |
---|
[b62cdbd] | 22 | guest_name = format("og-%s-modelo", var.ogversion) |
---|
[4bc4eb0] | 23 | disk_store = "ds.dell-esx09" |
---|
[b62cdbd] | 24 | memsize = 1024 |
---|
| 25 | power = "off" |
---|
| 26 | numvcpus = 1 |
---|
| 27 | clone_from_vm = "plantilla-modelo" |
---|
| 28 | nested_esxi = "y" |
---|
| 29 | |
---|
| 30 | network_interfaces { |
---|
| 31 | virtual_network = var.virtual_network |
---|
| 32 | nic_type = "e1000" |
---|
| 33 | mac_address = format("%s:ff",var.mac_prefix) |
---|
| 34 | } |
---|
| 35 | } |
---|
| 36 | |
---|
[f1abaf8] | 37 | resource "esxi_guest" "cliente" { |
---|
[24a445d] | 38 | count = var.num_clients |
---|
| 39 | guest_name = format("og-%s-pc%02d", var.ogversion, count.index) |
---|
[4bc4eb0] | 40 | disk_store = "ds.dell-esx09" |
---|
[b62cdbd] | 41 | boot_disk_size = 50 |
---|
[24a445d] | 42 | memsize = 1024 |
---|
| 43 | power = "off" |
---|
| 44 | numvcpus = 1 |
---|
| 45 | nested_esxi = "y" |
---|
[915580e] | 46 | |
---|
| 47 | network_interfaces { |
---|
[65d6383] | 48 | virtual_network = var.virtual_network |
---|
[915580e] | 49 | nic_type = "e1000" |
---|
[24a445d] | 50 | mac_address = format("%s:%s",var.mac_prefix, sum([11 , count.index])) |
---|
[915580e] | 51 | } |
---|
| 52 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.