Move Gjallar supervision to Yggdrasil
This commit is contained in:
parent
0fc29fa559
commit
98c67e3579
13 changed files with 153 additions and 526 deletions
|
|
@ -20,7 +20,7 @@ compose=/srv/compose/yggdrasil-apps.yaml
|
|||
require_release_lineage() {
|
||||
case "$target" in
|
||||
bifrost-persona-feedback) target_requires_bifrost_authority=true ;;
|
||||
epiphany|voidbot|heimdall|repixelizer|streampixels|odin|ghostlight) target_requires_bifrost_authority=false ;;
|
||||
epiphany|voidbot|heimdall|repixelizer|streampixels|odin|ghostlight|gjallar) target_requires_bifrost_authority=false ;;
|
||||
*) echo "deployment target has no release-authority policy: $target" >&2; exit 1 ;;
|
||||
esac
|
||||
if [ "$requires_bifrost_authority" != "$target_requires_bifrost_authority" ]; then
|
||||
|
|
@ -69,6 +69,9 @@ case "$action:$target" in
|
|||
restart:streampixels)
|
||||
docker compose -f "$compose" restart streampixels-service streampixels-web
|
||||
;;
|
||||
restart:gjallar)
|
||||
exec systemctl restart gjallar-yggdrasil.service
|
||||
;;
|
||||
deploy:voidbot|restart:voidbot|deploy:epiphany|restart:epiphany|deploy:odin|restart:odin|deploy:ghostlight|restart:ghostlight)
|
||||
manifest="/srv/odin/deploy-manifests/$target"
|
||||
if [ ! -x "$manifest" ] || [ ! -O "$manifest" ]; then
|
||||
|
|
@ -88,7 +91,7 @@ case "$action:$target" in
|
|||
IDUNN_REQUIRES_BIFROST_AUTHORITY="$requires_bifrost_authority" \
|
||||
exec "$manifest" "$action"
|
||||
;;
|
||||
deploy:heimdall|deploy:repixelizer|deploy:streampixels|deploy:bifrost-persona-feedback)
|
||||
deploy:heimdall|deploy:repixelizer|deploy:streampixels|deploy:bifrost-persona-feedback|deploy:gjallar)
|
||||
manifest="/srv/odin/deploy-manifests/$target"
|
||||
if [ ! -x "$manifest" ] || [ ! -O "$manifest" ]; then
|
||||
echo "root-owned executable deploy manifest is not installed: $manifest" >&2
|
||||
|
|
|
|||
Loading…
Reference in a new issue