vcd_vapp_vm
Provides a vCloud Director VM resource. This can be used to create, modify, and delete VMs within a vApp.
Note: There is known bug with this implementation, that to use the vcd_vapp_vm resource, you must set the paralellism parameter to 1. We are working on this.
Example Usage
resource "vcd_network" "net" { # ... } resource "vcd_vapp" "web" { name = "web" } resource "vcd_vapp_vm" "web2" { vapp_name = "${vcd_vapp.web.name}" name = "web2" catalog_name = "Boxes" template_name = "lampstack-1.10.1-ubuntu-10.04" memory = 2048 cpus = 1 ip = "10.10.104.161" } resource "vcd_vapp_vm" "web3" { vapp_name = "${vcd_vapp.web.name}" name = "web3" catalog_name = "Boxes" template_name = "lampstack-1.10.1-ubuntu-10.04" memory = 2048 cpus = 1 ip = "10.10.104.162" }
Argument Reference
The following arguments are supported:
-
vapp_name
- (Required) The vApp this VM should belong to. -
name
- (Required) A unique name for the vApp -
catalog_name
- (Required) The catalog name in which to find the given vApp Template -
template_name
- (Required) The name of the vApp Template to use -
memory
- (Optional) The amount of RAM (in MB) to allocate to the vApp -
cpus
- (Optional) The number of virtual CPUs to allocate to the vApp -
initscript
(Optional) A script to be run only on initial boot -
ip
- (Optional) The IP to assign to this vApp. Must be an IP address or one of dhcp, allocated or none. If given the address must be within thestatic_ip_pool
set for the network. If left blank, and the network hasdhcp_pool
set with at least one available IP then this will be set with DHCP. -
power_on
- (Optional) A boolean value stating if this vApp should be powered on. Default totrue
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/vcd/r/vapp_vm.html