Skip to content

Commit

Permalink
feat(Packet): add Packet support
Browse files Browse the repository at this point in the history
  • Loading branch information
rixrix committed Dec 10, 2016
1 parent 5eefc9e commit 97425a6
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Add support for `Librato`
* Add support for `Logentries`
* Add support for `Mailgun`
* Add support for `Packet`

# 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 @@ -40,6 +40,7 @@ This extension for Visual Studio Code adds snippets for Terraform.
* Librato
* Logentries
* Mailgun
* Packet
* AWS
* Resources w/ examples
* All [Data Sources](https://www.terraform.io/docs/providers/aws/d/acm_certificate.html),
Expand Down Expand Up @@ -108,7 +109,6 @@ A massive list of things to add
* Microsoft Azure (Legacy ASM)
* OpenStack
* Packet
* PagerDuty
* PowerDNS
* RabbitMQ
Expand Down
64 changes: 64 additions & 0 deletions snippets/terraform.json
Original file line number Diff line number Diff line change
Expand Up @@ -5008,5 +5008,69 @@
" smtp_password = \"foobar\"",
"}"
]
},
"packet": {
"prefix": "tf-packet",
"description": "define a packet provider.",
"body": [
"provider \"packet\" {",
" auth_token = \"${auth_token}\"",
"}"
]
},
"packet_device": {
"prefix": "tf-packet_device",
"description": "define packet_device resource.",
"body": [
"resource \"packet_device\" \"${myResourceName}\" {",
" name = \"my-${myResourceName}\"",
" description = \"my-description-${myResourceName}\"\n",
" hostname = \"tf.coreos2\"",
" plan = \"baremetal_1\"",
" facility = \"ewr1\"",
" operating_system = \"coreos_stable\"",
" billing_cycle = \"hourly\"",
" project_id = \"\\${packet_project.cool_project.id}\"",
"}"
]
},
"packet_project": {
"prefix": "tf-packet_project",
"description": "define packet_project resource.",
"body": [
"resource \"packet_project\" \"${myResourceName}\" {",
" name = \"my-${myResourceName}\"",
" description = \"my-description-${myResourceName}\"\n",
" payment_method = \"payment_method-id\"",
"}"
]
},
"packet_ssh_key": {
"prefix": "tf-packet_ssh_key",
"description": "define packet_ssh_key resource.",
"body": [
"resource \"packet_ssh_key\" \"${myResourceName}\" {",
" name = \"my-${myResourceName}\"",
" description = \"my-description-${myResourceName}\"\n",
" public_key = \"\\${file(\"/home/terraform/.ssh/id_rsa.pub\")}\"",
"}"
]
},
"packet_volume": {
"prefix": "tf-packet_volume",
"description": "define packet_volume resource.",
"body": [
"resource \"packet_volume\" \"${myResourceName}\" {",
" name = \"my-${myResourceName}\"",
" description = \"my-description-${myResourceName}\"\n",
" facility = \"ewr1\"",
" project_id = \"\\${packet_project.cool_project.id}\"",
" plan = \"storage_1\"",
" size = 100",
" billing_cycle = \"hourly\"",
" snapshot_policies = { snapshot_frequency = \"1day\", snapshot_count = 7 }",
" snapshot_policies = { snapshot_frequency = \"1month\", snapshot_count = 6 }",
"}"
]
}
}

0 comments on commit 97425a6

Please sign in to comment.