All Projects → packethost → Terraform Provider Packet

packethost / Terraform Provider Packet

Licence: mpl-2.0
Terraform provider for Equinix Metal (formerly Packet)

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Terraform Provider Packet

Terraform Provider Ansible
"Logical" provider for integrating with an Ansible Dynamic Inventory script.
Stars: ✭ 262 (+693.94%)
Mutual labels:  terraform, terraform-provider
Terraform Provider Dome9
Terraform Provider for Dome9
Stars: ✭ 33 (+0%)
Mutual labels:  terraform, terraform-provider
Terraform Provider Digitalocean
Terraform DigitalOcean provider
Stars: ✭ 296 (+796.97%)
Mutual labels:  terraform, terraform-provider
terraform-provider-bigip
Terraform resources that can configure F5 BIG-IP products
Stars: ✭ 74 (+124.24%)
Mutual labels:  terraform, terraform-provider
Terraform Provider Helm
Terraform Helm provider
Stars: ✭ 704 (+2033.33%)
Mutual labels:  terraform, terraform-provider
terraform-provider-terraform
Terraform terraform provider
Stars: ✭ 24 (-27.27%)
Mutual labels:  terraform, terraform-provider
Terraform Provider Alicloud
Terraform AliCloud provider
Stars: ✭ 340 (+930.3%)
Mutual labels:  terraform, terraform-provider
Terraform Provider Vault
Terraform Vault provider
Stars: ✭ 244 (+639.39%)
Mutual labels:  terraform, terraform-provider
Terraform Provider Aws
Terraform AWS provider
Stars: ✭ 6,624 (+19972.73%)
Mutual labels:  terraform, terraform-provider
Terraform Provider Oci
Terraform Oracle Cloud Infrastructure provider
Stars: ✭ 400 (+1112.12%)
Mutual labels:  terraform, terraform-provider
terraform-provider-vercel
Terraform Provider for Vercel (former ZEIT)
Stars: ✭ 36 (+9.09%)
Mutual labels:  terraform, terraform-provider
Namecheap
Go library for Namecheap API
Stars: ✭ 18 (-45.45%)
Mutual labels:  terraform, terraform-provider
terraform-provider-nutanix
Terraform Nutanix Provider
Stars: ✭ 53 (+60.61%)
Mutual labels:  terraform, terraform-provider
Terraform Provider Kafka
Terraform provider for managing Apache Kafka Topics + ACLs
Stars: ✭ 256 (+675.76%)
Mutual labels:  terraform, terraform-provider
Terraform Provider Auth0
Auth0 Terraform Provider
Stars: ✭ 252 (+663.64%)
Mutual labels:  terraform, terraform-provider
Terraform Provider Github
Terraform GitHub provider
Stars: ✭ 305 (+824.24%)
Mutual labels:  terraform, terraform-provider
Terraform Provider Virtualbox
VirtualBox provider for Terraform
Stars: ✭ 239 (+624.24%)
Mutual labels:  terraform, terraform-provider
Terraform Provider Unifi
Terraform provider for Unifi 📡
Stars: ✭ 239 (+624.24%)
Mutual labels:  terraform, terraform-provider
Terraform Provider Vsphere
Terraform VMware vSphere provider
Stars: ✭ 380 (+1051.52%)
Mutual labels:  terraform, terraform-provider
Terraform Provider Libvirt
Terraform provider to provision infrastructure with Linux's KVM using libvirt
Stars: ✭ 894 (+2609.09%)
Mutual labels:  terraform, terraform-provider

Equinix Metal Terraform Provider

GitHub release Go Report Card

Slack Twitter Follow

Packet is now Equinix Metal!

This repository is Maintained meaning that this software is supported by Equinix Metal and its community - available to use in production environments.

Using the provider

The Equinix Metal provider will be installed on terraform init of a template using any of the packet_* resources.

See https://registry.terraform.io/providers/packethost/packet/latest/docs for documentation on the resources included in this provider.

Requirements

  • Terraform 0.12+ (for v3.0.0 of this provider and newer)
  • Go 1.13 (to build the provider plugin)

Building the provider

Clone repository to: $GOPATH/src/github.com/packethost/terraform-provider-packet

mkdir -p $GOPATH/src/github.com/packethost; cd $GOPATH/src/github.com/packethost
git clone [email protected]:packethost/terraform-provider-packet

Enter the provider directory and build the provider

cd $GOPATH/src/github.com/packethost/terraform-provider-packet
make build

Developing the provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.13+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

To compile the provider, run make build. This will build the provider and put the provider binary in the $GOPATH/bin directory.

$ make bin
...
$ $GOPATH/bin/terraform-provider-packet
...

Testing provider code

We have mostly acceptance tests in the provider. There's no point for you to run them all, but you should run the one covering the functionality which you change. The acceptance test run will cost you some money, so feel free to abstain. The acceptance test suite will be run for your PR during the review process.

To run an acceptance test, find the relevant test function in *_test.go (for example TestAccPacketDevice_Basic), and run it as

TF_ACC=1 go test -v -timeout=20m -run=TestAccPacketDevice_Basic

If you want to see HTTP traffic, set TF_LOG=DEBUG, i.e.

TF_LOG=DEBUG TF_ACC=1 go test -v -timeout=20m -run=TestAccPacketDevice_Basic

Testing the provider with Terraform

Once you've built the plugin binary (see Developing the provider above), it can be incorporated within your Terraform environment using the -plugin-dir option. Subsequent runs of Terraform will then use the plugin from your development environment.

terraform init -plugin-dir $GOPATH/bin
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].