Skip to content

Commit

Permalink
terraform: terraform 0.13upgrade
Browse files Browse the repository at this point in the history
Signed-off-by: Marques Johansson <[email protected]>
  • Loading branch information
displague committed Sep 4, 2020
1 parent 1970128 commit 69bb79b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
20 changes: 13 additions & 7 deletions deploy/terraform/main.tf
Original file line number Diff line number Diff line change
@@ -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"
}
}
}

Expand Down Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions deploy/terraform/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
terraform {
required_version = ">= 0.13"
}

0 comments on commit 69bb79b

Please sign in to comment.