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

     1  ---
     2  layout: "profitbricks"
     3  page_title: "ProfitBricks: profitbricks_server"
     4  sidebar_current: "docs-profitbricks-resource-server"
     5  description: |-
     6    Creates and manages ProfitBricks Server objects.
     7  ---
     8  
     9  # profitbricks\_server
    10  
    11  Manages a Servers on ProfitBricks
    12  
    13  ## Example Usage
    14  
    15  This resource will create an operational server. After this section completes, the provisioner can be called.
    16  
    17  ```hcl
    18  resource "profitbricks_server" "example" {
    19    name              = "server"
    20    datacenter_id     = "${profitbricks_datacenter.example.id}"
    21    cores             = 1
    22    ram               = 1024
    23    availability_zone = "ZONE_1"
    24    cpu_family        = "AMD_OPTERON"
    25  
    26    volume {
    27      name           = "new"
    28      image_name     = "${var.ubuntu}"
    29      size           = 5
    30      disk_type      = "SSD"
    31      ssh_key_path   = "${var.private_key_path}"
    32      image_password = "test1234"
    33    }
    34  
    35    nic {
    36      lan             = "${profitbricks_lan.example.id}"
    37      dhcp            = true
    38      ip              = "${profitbricks_ipblock.example.ip}"
    39      firewall_active = true
    40  
    41      firewall {
    42        protocol         = "TCP"
    43        name             = "SSH"
    44        port_range_start = 22
    45        port_range_end   = 22
    46      }
    47    }
    48  }
    49  ```
    50  
    51  ##Argument reference
    52  
    53  * `name` - (Required) [string] The name of the server.
    54  * `datacenter_id` - (Required)[string]
    55  * `cores` - (Required)[integer] Number of server cores.
    56  * `ram` - (Required)[integer] The amount of memory for the server in MB.
    57  * `availability_zone` - (Optional)[string] The availability zone in which the server should exist.
    58  * `licence_type` - (Optional)[string] Sets the OS type of the server.
    59  * `cpuFamily` - (Optional)[string] Sets the CPU type. "AMD_OPTERON" or "INTEL_XEON". Defaults to "AMD_OPTERON".
    60  * `volume` -  (Required) See Volume section.
    61  * `nic` - (Required) See NIC section.
    62  * `firewall` - (Optional) See Firewall Rule section.