Skip to content

Commit

Permalink
feat(Triton): add Triton support
Browse files Browse the repository at this point in the history
  • Loading branch information
rixrix committed Dec 10, 2016
1 parent aa69464 commit c4444ff
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* Add support for `StatusCake`
* Add support for `Terraform`
* Add support for `TLS`
* Add support for `Triton`

# 0.10.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ This extension for Visual Studio Code adds snippets for Terraform.
* StatusCake
* Terraform
* TLS
* Triton
* AWS
* Resources w/ examples
* All [Data Sources](https://www.terraform.io/docs/providers/aws/d/acm_certificate.html),
Expand Down Expand Up @@ -117,7 +118,6 @@ A massive list of things to add
* Microsoft Azure (Legacy ASM)
* OpenStack
* Triton
* UltraDNS
* VMware vCloud Director
* VMware vSphere
Expand Down
48 changes: 48 additions & 0 deletions snippets/terraform.json
Original file line number Diff line number Diff line change
Expand Up @@ -5518,5 +5518,53 @@
" }",
"}"
]
},
"triton": {
"prefix": "tf-triton",
"description": "define a triton provider.",
"body": [
"provider \"triton\" {",
" account = \"AccountName\"",
" key_material = \"\\${file(\"~/.ssh/id_rsa\")}\"",
" key_id = \"25:d4:a9:fe:ef:e6:c0:bf:b4:4b:4b:d4:a8:8f:01:0f\"",
" # If using a private installation of Triton, specify the URL",
" url = \"https://us-west-1.api.joyentcloud.com\"",
"}"
]
},
"triton_firewall_rule": {
"prefix": "tf-triton_firewall_rule",
"description": "define triton_firewall_rule resource.",
"body": [
"resource \"triton_firewall_rule\" \"${myResourceName}\" {",
" name = \"my-${myResourceName}\"",
" description = \"my-description-${myResourceName}\"\n",
" rule = \"FROM any TO tag www ALLOW tcp (PORT 80 AND PORT 443)\"",
" enabled = true",
"}"
]
},
"triton_key": {
"prefix": "tf-triton_key",
"description": "define triton_key resource.",
"body": [
"resource \"triton_key\" \"${myResourceName}\" {",
" name = \"my-${myResourceName}\"",
" description = \"my-description-${myResourceName}\"\n",
" key = \"\\${file(\"keys/id_rsa\")}\"",
"}"
]
},
"triton_machine": {
"prefix": "tf-triton_machine",
"description": "define triton_machine resource.",
"body": [
"resource \"triton_machine\" \"${myResourceName}\" {",
" name = \"my-${myResourceName}\"",
" description = \"my-description-${myResourceName}\"\n",
" package = \"g3-standard-0.25-smartos\"",
" image = \"842e6fa6-6e9b-11e5-8402-1b490459e334\"",
"}"
]
}
}

0 comments on commit c4444ff

Please sign in to comment.