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
Release / release (push) Failing after 14m20s
This commit is contained in:
1 parent
ff0c93ed73
commit
a649331aa2
49 files changed
+1597
-637
No files matched your search
@@ -1,13 +1,11 @@
|
||||
#cloud-config
|
||||
#
|
||||
# Example: install and configure linux-manager during first boot, supplying an
|
||||
# existing root CA instead of letting the package create one. See
|
||||
# cloud-init.yaml.tpl for the variant that creates its own.
|
||||
#
|
||||
# Template variables are Terraform templatefile() placeholders. Adapt or drop
|
||||
# them for whatever renders this file. With root_key empty the root stays
|
||||
# offline: the server's issuing CAs wait for their certificates, signed with
|
||||
# the root elsewhere and imported with linux-manager-ca ca import.
|
||||
# Example: install and configure linux-manager during first boot, with its
|
||||
# issuing CAs signed by a Simple CA service. The template variables are
|
||||
# Terraform templatefile() placeholders: config holds pki.root simple-ca and
|
||||
# pki.simple_ca_url, setup_code is the one-time setup code of a sign-ca token,
|
||||
# and trusted_cas the PEM certificates of CAs added to the trust store, among
|
||||
# them the CA of the service's HTTPS certificate.
|
||||
|
||||
hostname: ${hostname}
|
||||
fqdn: ${fqdn}
|
||||
@@ -21,31 +19,28 @@ apt:
|
||||
${indent(8, trimspace(repo_gpg_key))}
|
||||
|
||||
write_files:
|
||||
# The configuration file. Created here before the package is installed, so
|
||||
# postinst leaves it alone.
|
||||
- path: /etc/linux-manager/linux-manager.json
|
||||
permissions: '0600'
|
||||
owner: root:root
|
||||
content: |
|
||||
${jsonencode(config)}
|
||||
|
||||
- path: /etc/linux-manager/pki/root/cert.pem
|
||||
permissions: '0644'
|
||||
owner: root:root
|
||||
content: |
|
||||
${indent(6, trimspace(root_cert))}
|
||||
%{ if root_key != "" ~}
|
||||
- path: /etc/linux-manager/pki/root/key.pem
|
||||
- path: /etc/linux-manager/pki-setup-code
|
||||
permissions: '0600'
|
||||
owner: root:root
|
||||
content: |
|
||||
${indent(6, trimspace(root_key))}
|
||||
%{ endif ~}
|
||||
${setup_code}
|
||||
|
||||
%{ if length(trusted_cas) > 0 ~}
|
||||
ca_certs:
|
||||
trusted:
|
||||
%{ for ca in trusted_cas ~}
|
||||
- |
|
||||
${indent(6, trimspace(ca))}
|
||||
%{ endfor ~}
|
||||
|
||||
%{ endif ~}
|
||||
package_update: true
|
||||
|
||||
packages:
|
||||
- linux-manager
|
||||
|
||||
# Nothing further is required: installing the package starts
|
||||
# linux-manager-setup, which applies the configuration written above.
|
||||
Reference in new issue
Block a user