From 6e4bc8929d83fb4898651007368e777863686ff9 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 6 Jun 2022 09:18:38 +0200 Subject: [PATCH] move nomad job to dedicated folder --- .../alertmanager.nomad | 0 chainetv.nomad => nomad-job/chainetv.nomad | 0 .../crowdsec-agent.nomad | 0 .../crowdsec-api.nomad | 0 dashboard.nomad => nomad-job/dashboard.nomad | 0 {decom => nomad-job/decom}/nextcloud.nomad | 0 nomad-job/decom/rsyncd.nomad | 69 +++++++++++++++++++ deconz.nomad => nomad-job/deconz.nomad | 0 drone.nomad => nomad-job/drone.nomad | 0 filestash.nomad => nomad-job/filestash.nomad | 0 gitea.nomad => nomad-job/gitea.nomad | 0 grafana.nomad => nomad-job/grafana.nomad | 0 .../homeassistant.nomad | 0 loki.nomad => nomad-job/loki.nomad | 0 nomad.sample => nomad-job/nomad.sample | 0 pacoloco.nomad => nomad-job/pacoloco.nomad | 0 pihole.nomad => nomad-job/pihole.nomad | 0 .../prometheus.nomad | 0 promtail.nomad => nomad-job/promtail.nomad | 0 radicale.nomad => nomad-job/radicale.nomad | 0 supysonic.nomad => nomad-job/supysonic.nomad | 0 syncthing.nomad => nomad-job/syncthing.nomad | 0 torrent.nomad => nomad-job/torrent.nomad | 0 .../traefik-ingress.nomad | 0 .../traefik-local.nomad | 0 tt-rss.nomad => nomad-job/tt-rss.nomad | 0 .../vaultwarden.nomad | 0 wikijs.nomad => nomad-job/wikijs.nomad | 0 www.nomad => nomad-job/www.nomad | 0 29 files changed, 69 insertions(+) rename alertmanager.nomad => nomad-job/alertmanager.nomad (100%) rename chainetv.nomad => nomad-job/chainetv.nomad (100%) rename crowdsec-agent.nomad => nomad-job/crowdsec-agent.nomad (100%) rename crowdsec-api.nomad => nomad-job/crowdsec-api.nomad (100%) rename dashboard.nomad => nomad-job/dashboard.nomad (100%) rename {decom => nomad-job/decom}/nextcloud.nomad (100%) create mode 100644 nomad-job/decom/rsyncd.nomad rename deconz.nomad => nomad-job/deconz.nomad (100%) rename drone.nomad => nomad-job/drone.nomad (100%) rename filestash.nomad => nomad-job/filestash.nomad (100%) rename gitea.nomad => nomad-job/gitea.nomad (100%) rename grafana.nomad => nomad-job/grafana.nomad (100%) rename homeassistant.nomad => nomad-job/homeassistant.nomad (100%) rename loki.nomad => nomad-job/loki.nomad (100%) rename nomad.sample => nomad-job/nomad.sample (100%) rename pacoloco.nomad => nomad-job/pacoloco.nomad (100%) rename pihole.nomad => nomad-job/pihole.nomad (100%) rename prometheus.nomad => nomad-job/prometheus.nomad (100%) rename promtail.nomad => nomad-job/promtail.nomad (100%) rename radicale.nomad => nomad-job/radicale.nomad (100%) rename supysonic.nomad => nomad-job/supysonic.nomad (100%) rename syncthing.nomad => nomad-job/syncthing.nomad (100%) rename torrent.nomad => nomad-job/torrent.nomad (100%) rename traefik-ingress.nomad => nomad-job/traefik-ingress.nomad (100%) rename traefik-local.nomad => nomad-job/traefik-local.nomad (100%) rename tt-rss.nomad => nomad-job/tt-rss.nomad (100%) rename vaultwarden.nomad => nomad-job/vaultwarden.nomad (100%) rename wikijs.nomad => nomad-job/wikijs.nomad (100%) rename www.nomad => nomad-job/www.nomad (100%) diff --git a/alertmanager.nomad b/nomad-job/alertmanager.nomad similarity index 100% rename from alertmanager.nomad rename to nomad-job/alertmanager.nomad diff --git a/chainetv.nomad b/nomad-job/chainetv.nomad similarity index 100% rename from chainetv.nomad rename to nomad-job/chainetv.nomad diff --git a/crowdsec-agent.nomad b/nomad-job/crowdsec-agent.nomad similarity index 100% rename from crowdsec-agent.nomad rename to nomad-job/crowdsec-agent.nomad diff --git a/crowdsec-api.nomad b/nomad-job/crowdsec-api.nomad similarity index 100% rename from crowdsec-api.nomad rename to nomad-job/crowdsec-api.nomad diff --git a/dashboard.nomad b/nomad-job/dashboard.nomad similarity index 100% rename from dashboard.nomad rename to nomad-job/dashboard.nomad diff --git a/decom/nextcloud.nomad b/nomad-job/decom/nextcloud.nomad similarity index 100% rename from decom/nextcloud.nomad rename to nomad-job/decom/nextcloud.nomad diff --git a/nomad-job/decom/rsyncd.nomad b/nomad-job/decom/rsyncd.nomad new file mode 100644 index 0000000..07809fc --- /dev/null +++ b/nomad-job/decom/rsyncd.nomad @@ -0,0 +1,69 @@ + +job "rsyncd" { + datacenters = ["hetzner"] + type = "service" + meta { + forcedeploy = "1" + } + + vault { + policies = ["access-tables"] + } + + group "rsyncd"{ + network { + mode = "host" + port "rsync" { + static = 873 + } + } + task "server" { + driver = "docker" + config { + image = "vimagick/rsyncd" + ports = ["rsync"] + volumes = [ + "/mnt/hetzner/storagebox/:/share", + "local/rsyncd.conf:/etc/rsyncd.conf", + "secrets/rsyncd.secrets:/etc/rsyncd.secrets" + + ] + + } + + template { + data= <