fix: the root CA is created by the server, an offline CA or a Simple CA service, chosen at setup; the shell can stay open in a tab of its own, the Docker page is offered only with Docker, and the test scripts are in bin/.
Release / release (push) Failing after 14m20s

This commit is contained in:
slawek committed 2026-11-23 06:45:23 +01:00
1 parent ff0c93ed73
commit a649331aa2
49 files changed
+1597 -637

No files matched your search

+4 -3
View File
@@ -3,7 +3,7 @@ data "http" "repo_gpg_key" {
}
locals {
supply_pki = var.root_cert_file != ""
supply_pki = var.simple_ca_url != ""
cloud_init_vars = {
hostname = var.name
@@ -11,6 +11,7 @@ locals {
repo_url = var.repo_url
repo_gpg_key = data.http.repo_gpg_key.response_body
ubuntu_codename = var.ubuntu_codename
trusted_cas = [for path in var.trusted_ca_files : file(path)]
# Contents of /etc/linux-manager/linux-manager.json.
config = {
@@ -35,8 +36,8 @@ locals {
}
cloud_init_rendered = local.supply_pki ? templatefile("${path.module}/../cloud-init-with-pki.yaml.tpl", merge(local.cloud_init_vars, {
root_cert = file(var.root_cert_file)
root_key = var.root_key_file != "" ? file(var.root_key_file) : ""
config = merge(local.cloud_init_vars.config, { pki = { root = "simple-ca", simple_ca_url = var.simple_ca_url } })
setup_code = var.simple_ca_setup_code
})) : templatefile("${path.module}/../cloud-init.yaml.tpl", local.cloud_init_vars)
}