🏡 index : github.com/captn3m0/nebula.git

author Nemo <commits@captnemo.in> 2021-02-02 13:52:51.0 +05:30:00
committer Nemo <commits@captnemo.in> 2021-02-02 13:52:51.0 +05:30:00
commit
a532831de9a18e5993a3a2529f09542dd43f0c1c [patch]
tree
52fae7d13e1280352896cd25d829a682a035019b
parent
2d2348f34f70478287b4f382f6edc4c6c221fae2
download
a532831de9a18e5993a3a2529f09542dd43f0c1c.tar.gz

remove abstruse



Diff

 main.tf               |  9 ---------
 abstruse/main.tf      | 35 -----------------------------------
 abstruse/variables.tf |  9 ---------
 3 files changed, 53 deletions(-)

diff --git a/main.tf b/main.tf
index af81dc0..5cff27d 100644
--- a/main.tf
+++ a/main.tf
@@ -90,12 +90,3 @@
#   source = "tinyproxy"
#   ips    = "${var.ips}"
# }


# module "abstruse" {
#   source             = "abstruse"
#   domain             = "ci.bb8.fun"
#   traefik-labels     = "${var.traefik-common-labels}"
#   traefik-network-id = "${module.docker.traefik-network-id}"
# }

diff --git a/abstruse/main.tf b/abstruse/main.tf
deleted file mode 100644
index 52b4351..0000000 100644
--- a/abstruse/main.tf
+++ /dev/null
@@ -1,35 +1,0 @@
data "docker_registry_image" "abstruse" {

  name = "bleenco/abstruse:latest"
}

resource "docker_image" "abstruse" {

  name          = "${data.docker_registry_image.abstruse.name}"
  pull_triggers = ["${data.docker_registry_image.abstruse.sha256_digest}"]
}

resource "docker_container" "abstruse" {

  name  = "abstruse"
  image = "${docker_image.abstruse.latest}"

  labels = "${merge(

    var.traefik-labels, map(
      "traefik.port", 6500,
      "traefik.frontend.rule","Host:${var.domain}"
  ))}"

  networks = ["${var.traefik-network-id}"]

  volumes {

    host_path      = "/var/run/docker.sock"
    container_path = "/var/run/docker.sock"
  }

  volumes {

    host_path      = "/mnt/xwing/config/abstruse"
    container_path = "/root/.abstruse"
  }

  restart               = "unless-stopped"
  destroy_grace_seconds = 60
  must_run              = true
}
diff --git a/abstruse/variables.tf b/abstruse/variables.tf
deleted file mode 100644
index 7fc62b1..0000000 100644
--- a/abstruse/variables.tf
+++ /dev/null
@@ -1,9 +1,0 @@
variable "domain" {

  description = "domain to be used by traefik"
}

variable "traefik-labels" {

  type = "map"
}

variable "traefik-network-id" {}