diff --git a/2-nomad-config/2-services.tf b/2-nomad-config/2-services.tf index 813165f..a4e61f0 100644 --- a/2-nomad-config/2-services.tf +++ b/2-nomad-config/2-services.tf @@ -2,13 +2,8 @@ resource "nomad_job" "glance" { jobspec = file("glance.nomad.hcl") } -resource "nomad_job" "hello_world" { - jobspec = file("hello-world.nomad.hcl") -} - - -resource "nomad_job" "webapp" { - jobspec = file("webapp.nomad.hcl") +resource "nomad_job" "transfer" { + jobspec = file("transfer.nomad.hcl") } resource "nomad_csi_volume_registration" "unraid_transfer" { @@ -36,9 +31,6 @@ resource "nomad_csi_volume_registration" "unraid_transfer" { } } -resource "nomad_job" "transfer" { - jobspec = file("transfer.nomad.hcl") -} resource "nomad_csi_volume_registration" "unraid_appdata_transferfilebrowser" { #Note: Before chaning the definition of this volume you need to stop the jobs that are using it diff --git a/2-nomad-config/hello-world.nomad.hcl b/2-nomad-config/hello-world.nomad.hcl deleted file mode 100644 index 8dd1c21..0000000 --- a/2-nomad-config/hello-world.nomad.hcl +++ /dev/null @@ -1,61 +0,0 @@ -job "hello-world" { - group "servers" { - network { - port "www" { - to = -1 - } - } - - service { - name = "hello-world" - port = "www" - - tags = [ - "traefik.enable=true", - "traefik.http.routers.hello-world.middlewares=auth@file", - ] - - check { - name = "alive" - type = "tcp" - port = "www" - interval = "10s" - timeout = "2s" - } - } - - - # Tasks are individual units of work that are run by Nomad. - task "web" { - # This particular task starts a simple web server within a Docker container - driver = "docker" - - config { - image = "busybox:1" - command = "httpd" - args = ["-v", "-f", "-p", "${NOMAD_PORT_www}", "-h", "/local"] - ports = ["www"] - } - - template { - data = <<-EOF -