From 4a10b9774926e23a51b48512db909190300eb831 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 17 Dec 2024 16:31:43 -0800 Subject: [PATCH] Add Christmas list service --- ansible_playbooks/setup-cluster.yml | 3 ++ ansible_playbooks/vars/nomad_vars.sample.yml | 2 + services/christmas-community.tf | 44 ++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 services/christmas-community.tf diff --git a/ansible_playbooks/setup-cluster.yml b/ansible_playbooks/setup-cluster.yml index 05856af..bc6469e 100644 --- a/ansible_playbooks/setup-cluster.yml +++ b/ansible_playbooks/setup-cluster.yml @@ -140,6 +140,9 @@ - name: ytdl-web path: /srv/volumes/nas-container/ytdl-web read_only: false + - name: christmas-community + path: /srv/volumes/nas-container/christmas-community + read_only: false - name: all-volumes path: /srv/volumes owner: "root" diff --git a/ansible_playbooks/vars/nomad_vars.sample.yml b/ansible_playbooks/vars/nomad_vars.sample.yml index cbc8b70..4b00c1d 100644 --- a/ansible_playbooks/vars/nomad_vars.sample.yml +++ b/ansible_playbooks/vars/nomad_vars.sample.yml @@ -140,6 +140,8 @@ nomad/jobs/traefik: nomad/jobs/unifi-traffic-route-ips: unifi_password: VALUE unifi_username: VALUE +nomad/jobs/wishlist: + guest_password: VALUE nomad/oidc: secret: VALUE secrets/ldap: diff --git a/services/christmas-community.tf b/services/christmas-community.tf new file mode 100644 index 0000000..a160974 --- /dev/null +++ b/services/christmas-community.tf @@ -0,0 +1,44 @@ +module "wishlist" { + source = "./service" + + name = "wishlist" + image = "wingysam/christmas-community:latest" + + ingress = true + service_port = 80 + use_wesher = var.use_wesher + + host_volumes = [ + { + name = "christmas-community" + dest = "/data" + read_only = false + }, + ] + + templates = [ + { + data = <