add basic template
This commit is contained in:
1 parent
bd51ac0af7
commit
36edcb7254
5 files changed
+59
-5
No files matched your search
+1
-1
@@ -139,7 +139,7 @@ module "code-server" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module "jetbrains_gateway" {
|
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"
|
source = "registry.coder.com/modules/jetbrains-gateway/coder"
|
||||||
|
|
||||||
jetbrains_ides = var.jetbrains_ides
|
jetbrains_ides = var.jetbrains_ides
|
||||||
|
|||||||
+8
-2
@@ -15,16 +15,22 @@ variable "vscode_settings" {
|
|||||||
default = {}
|
default = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "enable_jetbrains_gateway" {
|
||||||
|
type = bool
|
||||||
|
default = true
|
||||||
|
description = "Enable JetBrains Gateway module"
|
||||||
|
}
|
||||||
|
|
||||||
variable "jetbrains_ides" {
|
variable "jetbrains_ides" {
|
||||||
description = "List of JetBrains IDEs to enable"
|
description = "List of JetBrains IDEs to enable"
|
||||||
type = list(string)
|
type = list(string)
|
||||||
default = ["IU"]
|
default = []
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "jetbrains_default" {
|
variable "jetbrains_default" {
|
||||||
description = "Default JetBrains IDE to launch"
|
description = "Default JetBrains IDE to launch"
|
||||||
type = string
|
type = string
|
||||||
default = "IU"
|
default = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "docker_socket" {
|
variable "docker_socket" {
|
||||||
|
|||||||
@@ -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
|
||||||
|
}
|
||||||
@@ -41,6 +41,16 @@ module "java_workspace" {
|
|||||||
EOT
|
EOT
|
||||||
|
|
||||||
vscode_extensions = [
|
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",
|
"vscjava.vscode-java-pack",
|
||||||
"redhat.java",
|
"redhat.java",
|
||||||
"vscjava.vscode-java-debug",
|
"vscjava.vscode-java-debug",
|
||||||
|
|||||||
+10
-2
@@ -82,12 +82,20 @@ module "php_workspace" {
|
|||||||
EOT
|
EOT
|
||||||
|
|
||||||
vscode_extensions = [
|
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",
|
"bmewburn.vscode-intelephense-client",
|
||||||
"felixfbecker.php-debug",
|
"felixfbecker.php-debug",
|
||||||
"mehedidracula.php-namespace-resolver",
|
"mehedidracula.php-namespace-resolver",
|
||||||
"dbaeumer.vscode-eslint",
|
"dbaeumer.vscode-eslint",
|
||||||
"mikestead.dotenv",
|
|
||||||
"christian-kohler.path-intellisense",
|
|
||||||
"ms-vscode.vscode-typescript-tslint-plugin",
|
"ms-vscode.vscode-typescript-tslint-plugin",
|
||||||
"laravel.vscode-laravel"
|
"laravel.vscode-laravel"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in new issue
Block a user