Skip to content

Commit 521a369

Browse files
committed
feat(dotfiles): add custom variable for the dotfiles parameter description
1 parent b58bfeb commit 521a369

File tree

1 file changed

+8
-1
lines changed
  • registry/coder/modules/dotfiles

1 file changed

+8
-1
lines changed

registry/coder/modules/dotfiles/main.tf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ variable "agent_id" {
2626
description = "The ID of a Coder agent."
2727
}
2828

29+
variable "description" {
30+
type = string
31+
description = "A custom description for the dotfiles parameter. This is shown in the UI - and allows you to customize the instructions you give to your users."
32+
default = "Enter a URL for a [dotfiles repository](https://dotfiles.github.io) to personalize your workspace"
33+
}
34+
2935
variable "default_dotfiles_uri" {
3036
type = string
3137
description = "The default dotfiles URI if the workspace user does not provide one"
@@ -64,7 +70,7 @@ data "coder_parameter" "dotfiles_uri" {
6470
display_name = "Dotfiles URL"
6571
order = var.coder_parameter_order
6672
default = var.default_dotfiles_uri
67-
description = "Enter a URL for a [dotfiles repository](https://dotfiles.github.io) to personalize your workspace"
73+
description = var.description
6874
mutable = true
6975
icon = "/icon/dotfiles.svg"
7076
}
@@ -89,6 +95,7 @@ resource "coder_app" "dotfiles" {
8995
count = var.manual_update ? 1 : 0
9096
agent_id = var.agent_id
9197
display_name = "Refresh Dotfiles"
98+
9299
slug = "dotfiles"
93100
icon = "/icon/dotfiles.svg"
94101
order = var.order

0 commit comments

Comments
 (0)