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= <