diff --git a/base/main.tf b/base/main.tf index 3712600..8893db1 100644 --- a/base/main.tf +++ b/base/main.tf @@ -139,7 +139,7 @@ module "code-server" { } module "jetbrains_gateway" { - count = data.coder_workspace.me.start_count + count = var.enable_jetbrains_gateway ? data.coder_workspace.me.start_count : 0 source = "registry.coder.com/modules/jetbrains-gateway/coder" jetbrains_ides = var.jetbrains_ides diff --git a/base/variables.tf b/base/variables.tf index cb18df8..5abc632 100644 --- a/base/variables.tf +++ b/base/variables.tf @@ -15,16 +15,22 @@ variable "vscode_settings" { default = {} } +variable "enable_jetbrains_gateway" { + type = bool + default = true + description = "Enable JetBrains Gateway module" +} + variable "jetbrains_ides" { description = "List of JetBrains IDEs to enable" type = list(string) - default = ["IU"] + default = [] } variable "jetbrains_default" { description = "Default JetBrains IDE to launch" type = string - default = "IU" + default = "" } variable "docker_socket" { diff --git a/templates/basic/main.tf b/templates/basic/main.tf new file mode 100644 index 0000000..8bb15fe --- /dev/null +++ b/templates/basic/main.tf @@ -0,0 +1,30 @@ +terraform { + required_providers { + coder = { + source = "coder/coder" + } + docker = { + source = "kreuzwerker/docker" + } + } +} + +module "no_lang_workspace" { + source = "git::https://git.bobert.me/anthorob/coder-templates.git//base?ref=main" + + docker_image = "registry.bobert.me/anthorob/coder-base:latest" + + vscode_extensions = [ + "christian-kohler.path-intellisense", + "editorconfig.editorconfig", + "yzhang.markdown-all-in-one", + "usernamehw.errorlens", + "wayou.vscode-todo-highlight", + "oderwat.indent-rainbow", + "ms-azuretools.vscode-docker", + "redhat.vscode-yaml", + "mikestead.dotenv" +] + + enable_jetbrains_gateway = false +} diff --git a/templates/java/main.tf b/templates/java/main.tf index eb5b5a5..fe76fcd 100644 --- a/templates/java/main.tf +++ b/templates/java/main.tf @@ -41,6 +41,16 @@ module "java_workspace" { EOT vscode_extensions = [ + "christian-kohler.path-intellisense", + "editorconfig.editorconfig", + "yzhang.markdown-all-in-one", + "usernamehw.errorlens", + "wayou.vscode-todo-highlight", + "oderwat.indent-rainbow", + "ms-azuretools.vscode-docker", + "redhat.vscode-yaml", + "mikestead.dotenv", + "vscjava.vscode-java-pack", "redhat.java", "vscjava.vscode-java-debug", diff --git a/templates/php/main.tf b/templates/php/main.tf index f54de6f..86e2617 100644 --- a/templates/php/main.tf +++ b/templates/php/main.tf @@ -82,12 +82,20 @@ module "php_workspace" { EOT vscode_extensions = [ + "christian-kohler.path-intellisense", + "editorconfig.editorconfig", + "yzhang.markdown-all-in-one", + "usernamehw.errorlens", + "wayou.vscode-todo-highlight", + "oderwat.indent-rainbow", + "ms-azuretools.vscode-docker", + "redhat.vscode-yaml", + "mikestead.dotenv", + "bmewburn.vscode-intelephense-client", "felixfbecker.php-debug", "mehedidracula.php-namespace-resolver", "dbaeumer.vscode-eslint", - "mikestead.dotenv", - "christian-kohler.path-intellisense", "ms-vscode.vscode-typescript-tslint-plugin", "laravel.vscode-laravel" ]