mirror of
https://github.com/samply/bridgehead.git
synced 2026-10-13 01:06:41 +02:00
Secret Sync for the config repo token, one-time enrollment code, check output (#401)
* cce: Fetch the config repository token via Secret Sync * Keep the Secret Sync GitLab token across reboots and outages * Install site configuration with a one-time enrollment code * Align the itcc and dhki cases in prepare-system.sh * Report an unreachable broker instead of a clock skew during install * Show bridgehead check results as OK, WARN or CRIT and run them during install * Refresh the config repo token before bridgehead check fetches * Skip Secret Sync until the private key and root certificate exist * Indent the case block in prepare-system.sh with tabs only * Hide the config repo URL, token and enrollment code from other local users * remove the unreachable second dhki case --------- Co-authored-by: Martin Lablans <m.lablans@dkfz-heidelberg.de>
This commit is contained in:
co-authored by
Martin Lablans
parent
59a9fd688e
commit
00192eaefc
@@ -63,6 +63,16 @@ cp -v \
|
||||
|
||||
systemctl daemon-reload
|
||||
|
||||
fixPermissions
|
||||
|
||||
log "INFO" "Checking your bridgehead ..."
|
||||
CHECK_RESULT=0
|
||||
/srv/docker/bridgehead/bridgehead check "${PROJECT}" || CHECK_RESULT=$?
|
||||
if [ $CHECK_RESULT -ge 2 ]; then
|
||||
log "ERROR" "Some checks failed. Fix them and run the installation again."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
log INFO "Trying to update your bridgehead ..."
|
||||
|
||||
systemctl start bridgehead-update@"${PROJECT}".service
|
||||
|
||||
Reference in New Issue
Block a user