github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/website/source/docs/providers/triton/r/triton_machine.html.markdown (about)

     1  ---
     2  layout: "triton"
     3  page_title: "Triton: triton_machine"
     4  sidebar_current: "docs-triton-firewall"
     5  description: |-
     6      The `triton_machine` resource represents a virtual machine or infrastructure container running in Triton. 
     7  ---
     8  
     9  # triton\_machine
    10  
    11  The `triton_machine` resource represents a virtual machine or infrastructure container running in Triton.
    12  
    13  ## Example Usages
    14  
    15  Run a SmartOS base-64 machine.
    16  
    17  
    18  ```
    19  resource "triton_machine" "test" {
    20      name = "example-machine"
    21      package = "g3-standard-0.25-smartos"
    22      image = "842e6fa6-6e9b-11e5-8402-1b490459e334"
    23  
    24      tags = {
    25          hello = "world"
    26      }
    27  }
    28                  
    29  ```
    30  
    31  ## Argument Reference
    32  
    33  The following arguments are supported:
    34  
    35  * `name` - (string)
    36      The friendly name for the machine. Triton will generate a name if one is not specified.
    37  
    38  * `tags` - (map)
    39      A mapping of tags to apply to the machine.
    40  
    41  * `package` - (string, Required)
    42      The name of the package to use for provisioning.
    43  
    44  * `image` - (string, Required)
    45      The UUID of the image to provision.
    46  
    47  * `networks` - (list of string)
    48      A list of the IDs of the desired networks for the machine.
    49  
    50  * `firewall_enabled` - (boolean)  Default: `false`
    51      Whether the cloud firewall should be enabled for this machine.
    52  
    53  * `root_authorized_keys` - (string)
    54      The public keys authorized for root access via SSH to the machine.
    55  
    56  * `user_data` - (string)
    57      Data to be copied to the machine on boot.
    58  
    59  * `user_script` - (string)
    60      The user script to run on boot (every boot on SmartMachines).
    61  
    62  * `administrator_pw` - (string)
    63      The initial password for the Administrator user. Only used for Windows virtual machines.
    64  
    65  ## Attribute Reference
    66  
    67  The following attributes are exported:
    68  
    69  * `id` - (string) - The identifier representing the firewall rule in Triton. 
    70  * `type` - (string) - The type of the machine (`smartmachine` or `virtualmachine`). 
    71  * `state` - (string) - The current state of the machine. 
    72  * `dataset` - (string) - The dataset URN with which the machine was provisioned. 
    73  * `memory` - (int) - The amount of memory the machine has (in Mb). 
    74  * `disk` - (int) - The amount of disk the machine has (in Gb). 
    75  * `ips` - (list of strings) - IP addresses of the machine. 
    76  * `primaryip` - (string) - The primary (public) IP address for the machine. 
    77  * `created` - (string) - The time at which the machine was created. 
    78  * `updated` - (string) - The time at which the machine was last updated.