mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-09-02 18:28:07 +00:00
fix: mount answer server directory instead of individual file
Docker bind mount fails when mounting a file that doesn't exist on the host (creates a directory instead). In CI, the container's $WORK_DIR path differs from the host path, so the file mount failed. Changed to mount a single answer-server/ directory containing both default.toml and answers/ subdirectory. Replaced two TF variables (answer_files_dir, default_answer_file) with one (answer_server_dir). Layout: $WORK_DIR/answer-server/default.toml + answers/<mac>.toml Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -95,13 +95,8 @@ variable "docker_host_ip" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "answer_files_dir" {
|
||||
description = "Host path to the directory containing per-MAC answer.toml files"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "default_answer_file" {
|
||||
description = "Host path to the default answer.toml file"
|
||||
variable "answer_server_dir" {
|
||||
description = "Host path to the answer server root directory (contains default.toml and answers/ subdirectory)"
|
||||
type = string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user