diff --git a/base.tf.jinja b/base.tf.jinja index 16ed18b..3431949 100644 --- a/base.tf.jinja +++ b/base.tf.jinja @@ -66,7 +66,7 @@ resource "coder_agent" "main" { {% block post_startup_script_install_code_server %} {% endblock %} - {% block cleanup %} + {% block startup_script_cleanup %} {% endblock %} EOT {% endblock %} diff --git a/splunk.tf.jinja b/splunk.tf.jinja index 73ef688..efb3dd3 100644 --- a/splunk.tf.jinja +++ b/splunk.tf.jinja @@ -20,14 +20,14 @@ resource "coder_app" "splunk" { } {% endblock %} -{% block kubernetes_pod_main_command %} - command = ["/sbin/entrypoint.sh", "/usr/bin/bash", "-c", coder_agent.main.init_script] +{% block startup_script_cleanup %} + /sbin/entrypoint.sh start {% endblock %} {% block kubernetes_pod_main_env %} -env { - name = "SPLUNK_START_ARGS" - value = "--accept-license" -} + env { + name = "SPLUNK_START_ARGS" + value = "--accept-license" + } {{ super() }} {% endblock %} \ No newline at end of file