This repository has been archived on 2026-01-10. You can view files and clone it, but cannot push or open issues or pull requests.
coder-templates/ubuntu.tf.j2
Steve McMaster 212b0ce9f5
Some checks failed
continuous-integration/drone/push Build is failing
Refactor
2023-11-30 19:37:30 -05:00

36 lines
771 B
Django/Jinja

{% extends "base.tf.j2" %}
{% block parameters %}
{{ super() }}
data "coder_parameter" "ubuntu_release" {
name = "Ubuntu Release"
description = "Ubuntu Release"
type = "string"
default = ""
mutable = true
option {
name = "Latest"
value = ""
}
{% for version in ubuntu_releases %}
option {
name = "{{ version }}"
value = "-{{ version }}"
}
{% endfor %}
}
{% endblock %}
{% block kubernetes_pod_main_image %}
image = "{{image}}${data.coder_parameter.ubuntu_release.value}:latest"
{% endblock %}
{% block startup_script_install_packages %}
sudo apt update
{% if packages_to_install is defined %}
sudo apt install {{ packages_to_install | join(" ") }}
{% endif %}
{% endblock %}