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

author Nemo <commits@captnemo.in> 2021-01-27 12:55:08.0 +05:30:00
committer Nemo <commits@captnemo.in> 2021-01-27 12:55:08.0 +05:30:00
commit
c3584a8f561877888c64cd72ffcee36e63fa9060 [patch]
tree
afac5f9c0a760a08331e4619d6ca8336005fe19b
parent
20cd656e04cfe7cb6fe0bab167e4bb9c7d042e81
download
c3584a8f561877888c64cd72ffcee36e63fa9060.tar.gz

Removes unused code



Diff

 README.md            |  5 +----
 main.tf              |  8 --------
 media/bazarr.tf      | 39 ---------------------------------------
 media/jellyfin.tf    |  1 -
 media/mylar.tf       | 35 -----------------------------------
 resilio/main.tf      | 53 -----------------------------------------------------
 resilio/variables.tf | 11 -----------
 7 files changed, 1 insertion(+), 151 deletions(-)

diff --git a/README.md b/README.md
index 6e0de4d..65b456d 100644
--- a/README.md
+++ a/README.md
@@ -11,6 +11,7 @@
3.  [Part 3, Learnings](https://captnemo.in/blog/2017/12/18/home-server-learnings/)
4.  [Part 4, Migrating from Google (and more)](https://captnemo.in/blog/2017/12/31/migrating-from-google/)
5.  [Part 5, Networking](https://captnemo.in/blog/2018/04/22/home-server-networking/)
6.  [Part 6, RAID](https://captnemo.in/blog/2019/02/24/btrfs-raid-device-replacement-story/)

The canonical URL for this repo is https://git.captnemo.in/nemo/nebula/. A mirror is maintained on GitHub at <https://github.com/captn3m0/nebula>

@@ -40,7 +41,6 @@

| image                            | tag        | module/link                                          |
| -------------------------------- | ---------- | ---------------------------------------------------- |
| bleenco/abstruse                 | latest     | ci                                                   |
| captn3m0/opml-gen                | latest     | https://opml.bb8.fun                                 |
| captn3m0/prometheus-act-exporter | latest     | https://git.captnemo.in/nemo/prometheus-act-exporter |
| captn3m0/rss-bridge              | latest     | https://github.com/RSS-Bridge/rss-bridge             |
@@ -56,13 +56,10 @@
| linuxserver/lidarr               | latest     | media                                                |
| linuxserver/lychee               | latest     | media                                                |
| linuxserver/radarr               | latest     | media                                                |
| linuxserver/resilio-sync         | latest     | sync                                                 |
| linuxserver/sonarr               | latest     | media                                                |
| linuxserver/transmission         | latest     | media                                                |
| linuxserver/ubooquity            | latest     | media                                                |
| miniflux/miniflux                | 2.0.9      | tools                                                |
| monicahq/monicahq                | latest     | services                                             |
| odarriba/timemachine             | latest     | tools                                                |
| postgres                         | 10-alpine  | database                                             |
| prom/node-exporter               | v0.15.2    | monitoring                                           |
| prom/prometheus                  | latest     | monitoring                                           |
diff --git a/main.tf b/main.tf
index cc14ebd..af81dc0 100644
--- a/main.tf
+++ a/main.tf
@@ -62,14 +62,6 @@
  domain = "radicale.bb8.fun"
}

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

module "media" {

  source             = "media"
  domain             = "bb8.fun"
diff --git a/media/bazarr.tf b/media/bazarr.tf
deleted file mode 100644
index c46820d..0000000 100644
--- a/media/bazarr.tf
+++ /dev/null
@@ -1,39 +1,0 @@
# module "bazarr-container" {
#   name   = "bazarr"
#   source = "../modules/container"
#   image  = "linuxserver/bazarr:latest"

#   web {
#     expose = true
#     port   = 6767
#     host   = "bazarr.${var.domain}"
#   }

#   resource {
#     memory      = 512
#     memory_swap = 1024
#   }

#   volumes = [
#     {
#       host_path      = "/mnt/xwing/config/bazarr"
#       container_path = "/config"
#     },
#     {
#       host_path      = "/mnt/xwing/media/TV"
#       container_path = "/tv"
#     },
#     {
#       host_path      = "/mnt/xwing/media/Movies"
#       container_path = "/movies"
#     },
#   ]

#   env = [
#     "PUID=1004",
#     "PGID=1003",
#     "TZ=Asia/Kolkata",
#   ]

#   networks = "${list(docker_network.media.id, data.docker_network.bridge.id)}"
# }
diff --git a/media/jellyfin.tf b/media/jellyfin.tf
deleted file mode 100644
index 792d600..0000000 100644
--- a/media/jellyfin.tf
+++ /dev/null
@@ -1,1 +1,0 @@
#
diff --git a/media/mylar.tf b/media/mylar.tf
deleted file mode 100644
index f700d65..0000000 100644
--- a/media/mylar.tf
+++ /dev/null
@@ -1,35 +1,0 @@
# module "mylar" {
#   name   = "mylar"
#   source = "../modules/container"
#   image  = "linuxserver/mylar:latest"

#   web {
#     expose = true
#     port   = 8090
#     host   = "mylar.${var.domain}"
#     auth   = true
#   }

#   volumes = [
#     {
#       host_path      = "/mnt/xwing/media/EBooks/Comics"
#       container_path = "/comics"
#     },
#     {
#       host_path      = "/mnt/xwing/config/mylar"
#       container_path = "/config"
#     },
#     {
#       host_path      = "/mnt/xwing/media/DL"
#       container_path = "/downloads"
#     },
#   ]

#   env = [
#     "PUID=1004",
#     "PGID=1003",
#     "TZ=Asia/Kolkata",
#   ]

#   networks = "${list(docker_network.media.id, data.docker_network.bridge.id)}"
# }
diff --git a/resilio/main.tf b/resilio/main.tf
deleted file mode 100644
index f8b1789..0000000 100644
--- a/resilio/main.tf
+++ /dev/null
@@ -1,53 +1,0 @@
data "docker_registry_image" "resilio-sync" {

  name = "linuxserver/resilio-sync:latest"
}

resource "docker_image" "resilio-sync" {

  name          = "${data.docker_registry_image.resilio-sync.name}"
  pull_triggers = ["${data.docker_registry_image.resilio-sync.sha256_digest}"]
}

resource "docker_container" "resilio-sync" {

  name  = "resilio-sync"
  image = "${docker_image.resilio-sync.latest}"

  restart               = "unless-stopped"
  destroy_grace_seconds = 30
  must_run              = true

  ports {

    internal = 8888
    external = 8888
    ip       = "${var.ips["eth0"]}"
  }

  ports {

    internal = 55555
    external = 55555
    ip       = "${var.ips["eth0"]}"
  }

  volumes {

    host_path      = "/mnt/xwing/data/resilio-sync"
    container_path = "/sync"
  }

  volumes {

    host_path      = "/mnt/xwing/config/resilio-sync"
    container_path = "/config"
  }

  volumes {

    host_path      = "/mnt/xwing/media/DL"
    container_path = "/downloads"
  }

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

  labels = "${merge(

    var.traefik-labels,
    map(
      "traefik.frontend.rule", "Host:${var.domain}",
      "traefik.port", 8888,
    ))}"
}
diff --git a/resilio/variables.tf b/resilio/variables.tf
deleted file mode 100644
index 55757ae..0000000 100644
--- a/resilio/variables.tf
+++ /dev/null
@@ -1,11 +1,0 @@
variable "traefik-labels" {

  type = "map"
}

variable "ips" {

  type = "map"
}

variable "domain" {}

variable "traefik-network-id" {}