fix(grid-agent): move setup into YAML preferences (#135)
Some checks failed
CI / rust-skia (Rust only) (push) Successful in 2m46s
CI / required (push) Failing after 54s

This commit is contained in:
2026-08-18 21:34:14 +02:00
parent b56b28043f
commit db25a977b7
27 changed files with 1242 additions and 482 deletions

View File

@@ -1,7 +0,0 @@
# Values here are paths and non-secret mode settings only. Never put secret
# values in this file. Create every referenced file as mode 0600, owned by the
# metacrate-agent service identity.
METACRATE_AGENT_LLM_API_KEY_FILE=/etc/metacrate/secrets/llm-api-key
METACRATE_AGENT_GRID_PASSWORD_FILE=/etc/metacrate/secrets/grid-password
METACRATE_AGENT_CONTROL_OPERATOR_TOKEN_FILE=/etc/metacrate/secrets/control-operator-token
METACRATE_AGENT_STORAGE_PATH=/var/lib/metacrate/grid-agent

View File

@@ -8,9 +8,8 @@ After=network-online.target
Type=simple
User=metacrate-agent
Group=metacrate-agent
EnvironmentFile=-/etc/metacrate/grid-agent.env
ExecStartPre=/usr/local/bin/metacrate-grid-agent --config /etc/metacrate/grid-agent.json --check-config
ExecStart=/usr/local/bin/metacrate-grid-agent --config /etc/metacrate/grid-agent.json
ExecStartPre=/usr/local/bin/metacrate-grid-agent --config /etc/metacrate/config.yml --check-config
ExecStart=/usr/local/bin/metacrate-grid-agent --config /etc/metacrate/config.yml
KillSignal=SIGINT
TimeoutStopSec=30s
Restart=on-failure