From 1fcf5b4a6325960f3e9569f0110b04e1dde58b74 Mon Sep 17 00:00:00 2001 From: Steve McMaster Date: Tue, 13 Dec 2022 12:44:11 -0500 Subject: [PATCH] Start code-server in /opt/splunk --- splunk.tf.jinja | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/splunk.tf.jinja b/splunk.tf.jinja index b8ae119..370cf10 100644 --- a/splunk.tf.jinja +++ b/splunk.tf.jinja @@ -3,6 +3,24 @@ {% set coder_user_uid = 41812 %} {% set coder_user_gid = 41812 %} +{% block code_server %} +# code-server +resource "coder_app" "code-server" { + agent_id = coder_agent.main.id + name = "code-server" + icon = "/icon/code.svg" + url = "http://localhost:13337?folder=/opt/splunk" + subdomain = false + share = "owner" + + healthcheck { + url = "http://localhost:13337/healthz" + interval = 3 + threshold = 10 + } +} +{% endblock %} + {% block coder_apps %} resource "coder_app" "splunk" { agent_id = coder_agent.main.id