Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions openchami.spec
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ chmod 644 %{buildroot}/etc/openchami/configs/*
/etc/systemd/system/openchami.target
/etc/systemd/system/openchami-cert-renewal.service
/etc/systemd/system/openchami-cert-renewal.timer
/etc/systemd/system/openchami-cert-trust.service
/usr/local/bin/bootstrap_openchami.sh
/etc/profile.d/openchami.sh
/etc/openchami/pg-init/multi-psql-db.sh
Expand Down
6 changes: 3 additions & 3 deletions systemd/containers/acme-register.container
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=The acme-register container
Requires=step-ca.service
After=step-ca.service
Requires=openchami-cert-trust.service
After=openchami-cert-trust.service

[Container]
ContainerName=demo.openchami.cluster
Expand All @@ -26,4 +26,4 @@ Exec=--issue \
[Service]
Restart=on-failure
Type=oneshot
RemainAfterExit=yes
RemainAfterExit=yes
13 changes: 13 additions & 0 deletions systemd/system/openchami-cert-trust.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=Extract and trust OpenCHAMI root CA certificate
After=step-ca.service
Requires=step-ca.service

[Service]
Type=oneshot
ExecStart=podman cp step-ca:/root_ca/root_ca.crt /etc/pki/ca-trust/source/anchors/openchami.pem
ExecStart=update-ca-trust
StandardOutput=journal

[Install]
WantedBy=multi-user.target