|
|
|
|
@ -1,27 +1,28 @@
|
|
|
|
|
---
|
|
|
|
|
layout: "vsphere"
|
|
|
|
|
page_title: "Provider: vSphere"
|
|
|
|
|
page_title: "Provider: VMware vSphere"
|
|
|
|
|
sidebar_current: "docs-vsphere-index"
|
|
|
|
|
description: |-
|
|
|
|
|
The vSphere provider is used to interact with the resources supported by
|
|
|
|
|
vSphere. The provider needs to be configured with the proper credentials before
|
|
|
|
|
it can be used.
|
|
|
|
|
The VMware vSphere provider is used to interact with the resources supported by
|
|
|
|
|
VMware vSphere. The provider needs to be configured with the proper credentials
|
|
|
|
|
before it can be used.
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# vSphere Provider
|
|
|
|
|
# VMware vSphere Provider
|
|
|
|
|
|
|
|
|
|
The vSphere provider is used to interact with the resources supported by vSphere.
|
|
|
|
|
The VMware vSphere provider is used to interact with the resources supported by
|
|
|
|
|
VMware vSphere.
|
|
|
|
|
The provider needs to be configured with the proper credentials before it can be used.
|
|
|
|
|
|
|
|
|
|
Use the navigation to the left to read about the available resources.
|
|
|
|
|
|
|
|
|
|
~> **NOTE:** The vSphere Provider currently represents _initial support_ and
|
|
|
|
|
therefore may undergo significant changes as the community improves it.
|
|
|
|
|
~> **NOTE:** The VMware vSphere Provider currently represents _initial support_
|
|
|
|
|
and therefore may undergo significant changes as the community improves it.
|
|
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
# Configure the vSphere Provider
|
|
|
|
|
# Configure the VMware vSphere Provider
|
|
|
|
|
provider "vsphere" {
|
|
|
|
|
user = "${var.vsphere_user}"
|
|
|
|
|
password = "${var.vsphere_password}"
|
|
|
|
|
@ -47,7 +48,7 @@ resource "vsphere_virtual_machine" "web" {
|
|
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
|
|
The following arguments are used to configure the vSphere Provider:
|
|
|
|
|
The following arguments are used to configure the VMware vSphere Provider:
|
|
|
|
|
|
|
|
|
|
* `user` - (Required) This is the username for vSphere API operations. Can also
|
|
|
|
|
be specified with the `VSPHERE_USER` environment variable.
|
|
|
|
|
@ -59,10 +60,10 @@ The following arguments are used to configure the vSphere Provider:
|
|
|
|
|
|
|
|
|
|
## Acceptance Tests
|
|
|
|
|
|
|
|
|
|
The vSphere provider's acceptance tests require the above provider
|
|
|
|
|
The VMware vSphere provider's acceptance tests require the above provider
|
|
|
|
|
configuration fields to be set using the documented environment variables.
|
|
|
|
|
|
|
|
|
|
In addition, the following environment variables are used in tests, and must be set to valid values for your vSphere environment:
|
|
|
|
|
In addition, the following environment variables are used in tests, and must be set to valid values for your VMware vSphere environment:
|
|
|
|
|
|
|
|
|
|
* VSPHERE\_NETWORK\_GATEWAY
|
|
|
|
|
* VSPHERE\_NETWORK\_IP\_ADDRESS
|
|
|
|
|
|