Files
esh-pfi-infrastructure/playbooks/svos-releases/nh3-svos-3726d73-v0.0.14-interface.yaml
T

24 lines
1.4 KiB
YAML

# nh3-svos PHASE C of the v0.0.14 rollout: start app-interface 0.0.6 (already installed in /opt/svos/current = 3726d73 by
# phase A). Its first start migrates the briefs index v1->v2 (copy kept in backup/pre-3726d73) and raises ONE card (kind/
# name on the brief verbs): the interface refuses wrong-revision until Prime approves it. Then regenerate the front door.
steps:
- name: current is 3726d73 and the kernel is schema 14
shell: test "$(readlink /opt/svos/current)" = /opt/svos/releases/3726d73 && curl -s http://127.0.0.1:8400/health | grep -q '"schema_version":14'
changed_when: "false"
- name: Start the interface
sudo: true
shell: |
systemctl start svos-interface; sleep 6; systemctl is-active svos-interface
journalctl -u svos-interface --since "-60s" --no-pager -o cat | grep -i -E "brief|migrat|v2|manifest|card|held|error" | tail -8 | cut -c1-200
- name: Regenerate the front door inventory (33a7077 becomes the previous release)
sudo: true
shell: /usr/local/sbin/svos-front-inventory 2>&1 | grep -E 'GENERATED|updated|root \*|path /assets' | head -6
verify:
- name: Inventory current
sudo: true
shell: /usr/local/sbin/svos-front-inventory --check
changed_when: "false"
- name: Kernel health (the interface reads down until its card is approved)
shell: curl -s http://127.0.0.1:8400/health
changed_when: "false"