64 lines
1.4 KiB
Django/Jinja
64 lines
1.4 KiB
Django/Jinja
{% extends "base.tf.jinja" %}
|
|
|
|
{% 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
|
|
name = "splunk"
|
|
icon = "https://avatars.githubusercontent.com/u/651467?s=120&v=4"
|
|
url = "http://localhost:8000/"
|
|
subdomain = true
|
|
share = "public"
|
|
|
|
healthcheck {
|
|
url = "http://localhost:8000/"
|
|
interval = 3
|
|
threshold = 10
|
|
}
|
|
}
|
|
{% endblock %}
|
|
|
|
{% block startup_script_cleanup %}
|
|
sudo ln -s python3 /usr/bin/python
|
|
sudo -E -u ansible /sbin/entrypoint.sh start | tee splunk-startup.log &
|
|
{% endblock %}
|
|
|
|
{% block kubernetes_pod_main_env %}
|
|
env {
|
|
name = "SPLUNK_PASSWORD"
|
|
value = "Temp1234!"
|
|
}
|
|
env {
|
|
name = "SPLUNK_START_ARGS"
|
|
value = "--accept-license"
|
|
}
|
|
{{ super() }}
|
|
{% endblock %}
|
|
|
|
{% block kubernetes_pod_main_volume_mount %}
|
|
volume_mount {
|
|
mount_path = "/opt/splunk/etc"
|
|
name = "home"
|
|
read_only = false
|
|
}
|
|
{% endblock %} |