github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/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 ## Argument Reference 31 32 The following arguments are supported: 33 34 * `name` - (string) 35 The friendly name for the machine. Triton will generate a name if one is not specified. 36 37 * `tags` - (map) 38 A mapping of tags to apply to the machine. 39 40 * `package` - (string, Required) 41 The name of the package to use for provisioning. 42 43 * `image` - (string, Required) 44 The UUID of the image to provision. 45 46 * `nic` - (list of NIC blocks, Optional) 47 NICs associated with the machine. The fields allowed in a `NIC` block are defined below. 48 49 * `firewall_enabled` - (boolean) Default: `false` 50 Whether the cloud firewall should be enabled for this machine. 51 52 * `root_authorized_keys` - (string) 53 The public keys authorized for root access via SSH to the machine. 54 55 * `user_data` - (string) 56 Data to be copied to the machine on boot. 57 58 * `user_script` - (string) 59 The user script to run on boot (every boot on SmartMachines). 60 61 * `administrator_pw` - (string) 62 The initial password for the Administrator user. Only used for Windows virtual machines. 63 64 The nested `nic` block supports the following: 65 * `network` - (string, Optional) 66 The network id to attach to the network interface. It will be hex, in the format: `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`. 67 68 ## Attribute Reference 69 70 The following attributes are exported: 71 72 * `id` - (string) - The identifier representing the firewall rule in Triton. 73 * `type` - (string) - The type of the machine (`smartmachine` or `virtualmachine`). 74 * `state` - (string) - The current state of the machine. 75 * `dataset` - (string) - The dataset URN with which the machine was provisioned. 76 * `memory` - (int) - The amount of memory the machine has (in Mb). 77 * `disk` - (int) - The amount of disk the machine has (in Gb). 78 * `ips` - (list of strings) - IP addresses of the machine. 79 * `primaryip` - (string) - The primary (public) IP address for the machine. 80 * `created` - (string) - The time at which the machine was created. 81 * `updated` - (string) - The time at which the machine was last updated.