From 65d88dcd0143ce1b4f79e84acaa14fc6d3fe5971 Mon Sep 17 00:00:00 2001 From: Steve McMaster Date: Thu, 1 Dec 2022 23:59:35 -0500 Subject: [PATCH] update --- {python => python311}/README.md | 0 python311/main.tf | 114 ++++++++++++++++++++++++++++++++ python38/README.md | 113 +++++++++++++++++++++++++++++++ {python => python38}/main.tf | 2 +- 4 files changed, 228 insertions(+), 1 deletion(-) rename {python => python311}/README.md (100%) create mode 100644 python311/main.tf create mode 100644 python38/README.md rename {python => python38}/main.tf (97%) diff --git a/python/README.md b/python311/README.md similarity index 100% rename from python/README.md rename to python311/README.md diff --git a/python311/main.tf b/python311/main.tf new file mode 100644 index 0000000..3f6be60 --- /dev/null +++ b/python311/main.tf @@ -0,0 +1,114 @@ +terraform { + required_providers { + coder = { + source = "coder/coder" + version = "0.5.3" + } + kubernetes = { + source = "hashicorp/kubernetes" + version = "~> 2.12.1" + } + } +} + +provider "kubernetes" { + # Authenticate via ~/.kube/config or a Coder-specific ServiceAccount, depending on admin preferences + config_path = null +} + +provider "coder" { + url = "http://coder.coder.svc.cluster.local" +} + +data "coder_workspace" "me" {} + +resource "coder_agent" "main" { + os = "linux" + arch = "amd64" + startup_script = <