github.com/pbthorste/terraform@v0.8.6-0.20170127005045-deb56bd93da2/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  ```
    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       volume {
    26         name = "new"
    27         image_name = "${var.ubuntu}"
    28         size = 5
    29         disk_type = "SSD"
    30         ssh_key_path = "${var.private_key_path}"
    31         image_password = "test1234"
    32       }
    33       nic {
    34         lan = "${profitbricks_lan.example.id}"
    35         dhcp = true
    36         ip = "${profitbricks_ipblock.example.ip}"
    37         firewall_active = true
    38         firewall {
    39           protocol = "TCP"
    40           name = "SSH"
    41           port_range_start = 22
    42           port_range_end = 22
    43         }
    44       }
    45     }
    46  ```
    47  
    48  ##Argument reference
    49  
    50  * `name` - (Required) [string] The name of the server.
    51  * `datacenter_id` - (Required)[string] 
    52  * `cores` - (Required)[integer] Number of server cores.
    53  * `ram` - (Required)[integer] The amount of memory for the server in MB.
    54  * `availability_zone` - (Optional)[string] The availability zone in which the server should exist.
    55  * `licence_type` - (Optional)[string] Sets the OS type of the server.
    56  * `cpuFamily` - (Optional)[string] Sets the CPU type. "AMD_OPTERON" or "INTEL_XEON". Defaults to "AMD_OPTERON".
    57  * `volume` -  (Required) See Volume section.
    58  * `nic` - (Required) See NIC section.
    59  * `firewall` - (Optional) See Firewall Rule section.