From ed3d46b4e8fe21c249afe8b800b0e37f6873e765 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Mon, 25 Sep 2023 18:39:08 -0500 Subject: [PATCH] feat: add `log_path` to allow customization of the personalize log --- personalize/main.tf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/personalize/main.tf b/personalize/main.tf index 2b44c0a..fd88fd5 100644 --- a/personalize/main.tf +++ b/personalize/main.tf @@ -20,6 +20,12 @@ variable "path" { default = "~/personalize" } +variable "log_path" { + type = string + description = "The path to a log file that will contain the output of the personalize script." + default = "~/personalize.log" +} + resource "coder_script" "personalize" { agent_id = var.agent_id script = templatefile("${path.module}/run.sh", { @@ -27,5 +33,6 @@ resource "coder_script" "personalize" { }) display_name = "Personalize" icon = "/emojis/1f58c.png" + log_path = var.log_path run_on_start = true }