{% extends "base.tf.j2" %} {% block coder_apps %} resource "coder_app" "splunk" { agent_id = coder_agent.main.id display_name = "Splunk Web" slug = "splunkweb" icon = "https://s3.mcmaster.io/images/Splunk.webp" url = "http://localhost:8000/" subdomain = true share = "public" healthcheck { url = "http://localhost:8000/en-US/config?autoload=1" interval = 3 threshold = 10 } } {% 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 %} {% block parameters %} {{ super() }} data "coder_parameter" "splunk_version" { name = "Splunk Version" description = "Splunk Version" type = "string" default = "" icon = "https://s3.mcmaster.io/images/Splunk.webp" mutable = true option { name = "Latest" value = "" } {% for version in splunk_versions %} option { name = "{{ version }}" value = "-{{ version }}" } {% endfor %} } {% endblock %} {% block coder_scripts %} {{ super() }} resource "coder_script" "splunk_ansible" { agent_id = coder_agent.main.id display_name = "splunk_ansible" run_on_start = true run_on_stop = false script = <