fix: provide valid minimal Holmes config
Homelab Main / validate (push) Waiting to run Details
Homelab Main / running-update (push) Blocked by required conditions Details
Homelab Main / debian-ops (push) Blocked by required conditions Details

This commit is contained in:
juvenal.diaz 2026-10-08 12:15:10 -06:00
parent 002bdfa964
commit e7ab6093e3
2 changed files with 13 additions and 1 deletions

View File

@ -2085,7 +2085,7 @@ doctor_k8s() {
local holmes_stdout
local holmes_stderr
local holmes_combined
local holmes_config="${LAB_HOLMES_CONFIG_FILE:-/dev/null}"
local holmes_config="${LAB_HOLMES_CONFIG_FILE:-/data/homelab-ai-stack/holmes-config.yaml}"
local holmes_api_key="${LAB_AI_GATEWAY_API_KEY:-${OPENAI_API_KEY:-sk_omniroute}}"
local holmes_model="${LAB_HOLMES_MODEL:-${AI_STACK_AGENT_SMART_MODEL:-agent-smart-free}}"
local holmes_fast_model="${LAB_HOLMES_FAST_MODEL:-${AI_STACK_AGENT_FAST_MODEL:-agent-fast-free}}"
@ -2138,6 +2138,10 @@ EOF
holmes_model="${LAB_HOLMES_MODEL:-${AI_STACK_AGENT_SMART_MODEL:-${holmes_model}}}"
holmes_fast_model="${LAB_HOLMES_FAST_MODEL:-${AI_STACK_AGENT_FAST_MODEL:-${holmes_fast_model}}}"
fi
if [[ ! -r "${holmes_config}" ]]; then
printf '{}\n' >"${artifact_dir}/holmes-empty-config.yaml"
holmes_config="${artifact_dir}/holmes-empty-config.yaml"
fi
{
printf 'command=doctor-k8s\n'

View File

@ -5407,6 +5407,7 @@ deploy_ai_tools() {
local install_dir="${LAB_AI_STACK_INSTALL_DIR:-/data/homelab-ai-stack}"
local model_routes_file="${LAB_AI_STACK_MODEL_ROUTES_FILE:-${install_dir}/models.env}"
local tools_env_file="${LAB_AI_STACK_TOOLS_ENV_FILE:-${install_dir}/ai-tools.env}"
local holmes_config_file="${LAB_HOLMES_CONFIG_FILE:-${install_dir}/holmes-config.yaml}"
local bin_dir="${LAB_AI_TOOLS_BIN_DIR:-/home/jv/.local/bin}"
local port="${LAB_OMNIROUTE_PORT:-20128}"
local endpoint="${LAB_AI_TOOLS_GATEWAY_URL:-http://127.0.0.1:${port}/v1}"
@ -5484,6 +5485,12 @@ ENV_EOT
sudo chown "$(id -u):$(id -g)" "${tools_env_file}"
sudo chmod 600 "${tools_env_file}"
sudo tee "${holmes_config_file}" >/dev/null <<'ENV_EOT'
{}
ENV_EOT
sudo chown "$(id -u):$(id -g)" "${holmes_config_file}"
sudo chmod 600 "${holmes_config_file}"
for tool in goose holmes hermes; do
local wrapper="${bin_dir}/jeannie-${tool}"
tee "${wrapper}" >/dev/null <<WRAPPER_EOT
@ -5501,6 +5508,7 @@ WRAPPER_EOT
done
echo "AI tools env ready: ${tools_env_file}"
echo "Holmes config ready: ${holmes_config_file}"
echo "Wrappers ready: ${bin_dir}/jeannie-goose, ${bin_dir}/jeannie-holmes, ${bin_dir}/jeannie-hermes"
}