github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/vcd/r/vapp.html.markdown (about)

     1  ---
     2  layout: "vcd"
     3  page_title: "vCloudDirector: vcd_vapp"
     4  sidebar_current: "docs-vcd-resource-vapp"
     5  description: |-
     6    Provides a vCloud Director vApp resource. This can be used to create, modify, and delete vApps.
     7  ---
     8  
     9  # vcd\_vapp
    10  
    11  Provides a vCloud Director vApp resource. This can be used to create,
    12  modify, and delete vApps.
    13  
    14  ## Example Usage
    15  
    16  ```hcl
    17  resource "vcd_network" "net" {
    18    # ...
    19  }
    20  
    21  resource "vcd_vapp" "web" {
    22    name          = "web"
    23    catalog_name  = "Boxes"
    24    template_name = "lampstack-1.10.1-ubuntu-10.04"
    25    memory        = 2048
    26    cpus          = 1
    27  
    28    network_name = "${vcd_network.net.name}"
    29    network_href = "${vcd_network.net.href}"
    30    ip           = "10.10.104.160"
    31  
    32    metadata {
    33      role    = "web"
    34      env     = "staging"
    35      version = "v1"
    36    }
    37  }
    38  ```
    39  
    40  ## Argument Reference
    41  
    42  The following arguments are supported:
    43  
    44  * `name` - (Required) A unique name for the vApp
    45  * `catalog_name` - (Required) The catalog name in which to find the given vApp Template
    46  * `template_name` - (Required) The name of the vApp Template to use
    47  * `memory` - (Optional) The amount of RAM (in MB) to allocate to the vApp
    48  * `cpus` - (Optional) The number of virtual CPUs to allocate to the vApp
    49  * `initscript` (Optional) A script to be run only on initial boot
    50  * `network_name` - (Required) Name of the network this vApp should join
    51  * `network_href` - (Optional) The vCloud Director generated href of the network this vApp
    52    should join. If empty it will use the network name and query vCloud Director to discover
    53    this
    54  * `ip` - (Optional) The IP to assign to this vApp. Must be an IP address or
    55    one of dhcp, allocated or none. If given the address must be within the
    56    `static_ip_pool` set for the network. If left blank, and the network has
    57    `dhcp_pool` set with at least one available IP then this will be set with
    58    DHCP.
    59  * `metadata` - (Optional) Key value map of metadata to assign to this vApp
    60  * `power_on` - (Optional) A boolean value stating if this vApp should be powered on. Default to `true`