From 69bb79baa93325e1c9b0468c21569c147ed4727e Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Thu, 3 Sep 2020 17:08:15 -0400 Subject: [PATCH] terraform: terraform 0.13upgrade Signed-off-by: Marques Johansson --- deploy/terraform/main.tf | 20 +++++++++++++------- deploy/terraform/versions.tf | 3 +++ 2 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 deploy/terraform/versions.tf diff --git a/deploy/terraform/main.tf b/deploy/terraform/main.tf index f629bb04a..bed69e05d 100644 --- a/deploy/terraform/main.tf +++ b/deploy/terraform/main.tf @@ -1,7 +1,13 @@ # Configure the Packet Provider. terraform { required_providers { - packet = "~> 3.0.1" + packet = { + source = "packethost/packet" + version = "~> 3.0.1" + } + null = { + source = "hashicorp/null" + } } } @@ -74,16 +80,16 @@ resource "packet_device_network_type" "tink_worker_network_type" { # Attach VLAN to provisioner resource "packet_port_vlan_attachment" "provisioner" { - depends_on = [ packet_device_network_type.tink_provisioner_network_type ] - device_id = packet_device.tink_provisioner.id - port_name = "eth1" - vlan_vnid = packet_vlan.provisioning_vlan.vxlan + depends_on = [packet_device_network_type.tink_provisioner_network_type] + device_id = packet_device.tink_provisioner.id + port_name = "eth1" + vlan_vnid = packet_vlan.provisioning_vlan.vxlan } # Attach VLAN to worker resource "packet_port_vlan_attachment" "worker" { - count = var.worker_count - depends_on = [ packet_device_network_type.tink_worker_network_type ] + count = var.worker_count + depends_on = [packet_device_network_type.tink_worker_network_type] device_id = packet_device.tink_worker[count.index].id port_name = "eth0" diff --git a/deploy/terraform/versions.tf b/deploy/terraform/versions.tf new file mode 100644 index 000000000..6b6318def --- /dev/null +++ b/deploy/terraform/versions.tf @@ -0,0 +1,3 @@ +terraform { + required_version = ">= 0.13" +}