From cd74de45cc48d2dc1a9ea2025c304cb0a1c171cc Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 25 Jul 2023 10:15:15 -0700 Subject: [PATCH] WIP: Add TubeSync Syncing YouTube channels and playlists to Plex for RomeTube --- ansible_playbooks/setup-cluster.yml | 3 +++ services/main.tf | 40 +++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/ansible_playbooks/setup-cluster.yml b/ansible_playbooks/setup-cluster.yml index b6837a3..dd51de5 100644 --- a/ansible_playbooks/setup-cluster.yml +++ b/ansible_playbooks/setup-cluster.yml @@ -112,6 +112,9 @@ - name: nzbget-config path: /srv/volumes/nas-container/nzbget read_only: false + - name: tubesync-config + path: /srv/volumes/nas-container/tubesync + read_only: false - name: all-volumes path: /srv/volumes owner: "root" diff --git a/services/main.tf b/services/main.tf index e2d5144..23141cb 100644 --- a/services/main.tf +++ b/services/main.tf @@ -210,3 +210,43 @@ module "adminer" { memory = 50 } } + +module "tubesync" { + source = "./service" + + name = "tubesync" + image = "ghcr.io/meeb/tubesync:latest" + + ingress = true + service_port = 4848 + + env = { + TZ = "America/Los_Angeles" + } + + mysql_bootstrap = { + enabled = true + } + + host_volumes = [ + { + name = "tubesync-config" + dest = "/config" + read_only = false + }, + ] + + templates = [ + { + data = <