Skip to content

Commit

Permalink
Moved VMware cluster information to it's own example.
Browse files Browse the repository at this point in the history
  • Loading branch information
tommymalmqvist committed Apr 24, 2016
1 parent 0108ef7 commit e0fe2df
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
4 changes: 0 additions & 4 deletions website/source/docs/providers/vsphere/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ resource "vsphere_virtual_machine" "web" {
folder = "${vsphere_folder.frontend.path}"
vcpu = 2
memory = 4096
domain = "${var.vsphere_domain}"
datacenter = "${var.vsphere_datacenter}"
cluster = "${var.vsphere_cluster}"
resource_pool = "${var.vsphere_cluster}/Resources/${var.vsphere_resource_pool}"
network_interface {
label = "VM Network"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,35 @@ resource "vsphere_virtual_machine" "web" {
}
```

## Example Usage VMware Cluster

```
resource "vsphere_virtual_machine" "lb" {
name = "lb01"
folder = "Loadbalancers"
vcpu = 2
memory = 4096
domain = "MYDOMAIN"
datacenter = "EAST"
cluster = "Production Cluster"
resource_pool = "Production Cluster/Resources/Production Servers"
gateway = "10.20.30.254"
network_interface {
label = "10_20_30_VMNet"
ipv4_address = "10.20.30.40"
ipv4_prefix_length = "24"
}
disk {
datastore = "STO/VMFS135-STO"
datastore = "EAST/VMFS01-EAST"
template = "Templates/Centos7"
}
}
```

## Argument Reference

The following arguments are supported:
Expand All @@ -38,7 +67,7 @@ The following arguments are supported:
* `memory` - (Required) The amount of RAM (in MB) to allocate to the virtual machine
* `datacenter` - (Optional) The name of a Datacenter in which to launch the virtual machine
* `cluster` - (Optional) Name of a Cluster in which to launch the virtual machine
* `resource_pool` (Optional) The name of a Resource Pool in which to launch the virtual machine
* `resource_pool` (Optional) The name of a Resource Pool in which to launch the virtual machine. Requires full path (see cluster example).
* `gateway` - (Optional) Gateway IP address to use for all network interfaces
* `domain` - (Optional) A FQDN for the virtual machine; defaults to "vsphere.local"
* `time_zone` - (Optional) The [Linux](https://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/timezone.html) or [Windows](https://msdn.microsoft.com/en-us/library/ms912391.aspx) time zone to set on the virtual machine. Defaults to "Etc/UTC"
Expand Down

0 comments on commit e0fe2df

Please sign in to comment.