Add option to configure template job HCL file

Previously, the template job HCL file was hardcoded using go:embed
in the binary. However, this did not allow users running Poseidon
to change its content. Now, users can change the content of the
template job HCL file using the configuration option.
This commit is contained in:
sirkrypt0
2021-07-27 15:30:02 +02:00
committed by Tobias Kantusch
parent 12da813081
commit 67ebdbd650
5 changed files with 96 additions and 24 deletions

View File

@ -28,6 +28,7 @@ var (
KeyFile: "",
},
InteractiveStderr: true,
TemplateJobFile: "",
},
Nomad: Nomad{
Address: "127.0.0.1",
@ -63,6 +64,7 @@ type server struct {
Token string
TLS TLS
InteractiveStderr bool
TemplateJobFile string
}
// URL returns the URL of the Poseidon webserver.