fix: [nomad-step-5] Reorder HCL blocks in staging.hcl and chat.hcl to match edge.hcl pattern
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/nomad-validate Pipeline failed

Align block ordering (vault → network → volumes → restart → service → task)
across all Nomad jobspecs for consistency.
This commit is contained in:
dev-qwen2 2026-04-18 08:06:40 +00:00
parent 12e25a57d2
commit b07ca31c8b
2 changed files with 21 additions and 19 deletions

View file

@ -42,15 +42,6 @@ job "chat" {
role = "service-chat"
}
# Host volumes
# chat-history volume: declared in nomad/client.hcl, path
# /srv/disinto/chat-history on the factory box.
volume "chat-history" {
type = "host"
source = "chat-history"
read_only = false
}
# Network
# External port 8080 for chat UI access (via edge proxy or direct).
network {
@ -60,6 +51,15 @@ job "chat" {
}
}
# Host volumes
# chat-history volume: declared in nomad/client.hcl, path
# /srv/disinto/chat-history on the factory box.
volume "chat-history" {
type = "host"
source = "chat-history"
read_only = false
}
# Restart policy
restart {
attempts = 3

View file

@ -25,17 +25,10 @@ job "staging" {
group "staging" {
count = 1
# Host volumes
# site-content volume: declared in nomad/client.hcl, path
# /srv/disinto/docker on the factory box.
volume "site-content" {
type = "host"
source = "site-content"
read_only = true
}
# No Vault integration needed no secrets required (static file server)
# Vault workload identity (S5.2, issue #989)
# No Vault integration needed static file server with no secrets.
# Network
# Internal service no external port. Edge proxy routes internally.
network {
port "http" {
@ -44,6 +37,15 @@ job "staging" {
}
}
# Host volumes
# site-content volume: declared in nomad/client.hcl, path
# /srv/disinto/docker on the factory box.
volume "site-content" {
type = "host"
source = "site-content"
read_only = true
}
restart {
attempts = 3
interval = "5m"