From 621527e4891a4e973651b826cfece183f57c920e Mon Sep 17 00:00:00 2001 From: Glowbal Date: Sat, 7 Oct 2017 13:36:57 +0200 Subject: [PATCH] Use new docker swarm firewall module name --- examples/firewall/main.tf | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/firewall/main.tf b/examples/firewall/main.tf index 88ebd0e..3410f3f 100644 --- a/examples/firewall/main.tf +++ b/examples/firewall/main.tf @@ -20,15 +20,6 @@ resource "digitalocean_tag" "worker" { name = "worker" } -module "swarm-firewall" { - source = "github.com/thojkooi/terraform-digitalocean-swarm-firewall" - do_token = "${var.do_token}" - prefix = "example-com" - cluster_tags = ["${digitalocean_tag.cluster.id}", "${digitalocean_tag.manager.id}", "${digitalocean_tag.worker.id}"] - cluster_droplet_ids = [] - allowed_outbound_addresses = ["0.0.0.0/0", "::/0"] -} - module "swarm-cluster" { source = "github.com/thojkooi/terraform-digitalocean-docker-swarm-mode" total_managers = 3 @@ -41,3 +32,12 @@ module "swarm-cluster" { worker_tags = ["${digitalocean_tag.cluster.id}", "${digitalocean_tag.worker.id}"] domain = "do.example.com" } + +module "swarm-firewall" { + source = "github.com/thojkooi/terraform-digitalocean-docker-swarm-firewall" + do_token = "${var.do_token}" + prefix = "example-com" + cluster_tags = ["${digitalocean_tag.cluster.id}", "${digitalocean_tag.manager.id}", "${digitalocean_tag.worker.id}"] + cluster_droplet_ids = [] + allowed_outbound_addresses = ["0.0.0.0/0"] +}