feat: in the install script and playbook, put adapter logs in directory

This commit is contained in:
Lars Wirzenius
2026-06-18 09:45:33 +03:00
parent 564abab42d
commit 54b58b33d9
3 changed files with 10 additions and 2 deletions
@@ -1,5 +1,5 @@
image: /home/ci/ambient.qcow2
logdir: /srv/http/ambient-log
log: /home/ci/radicle-ci-ambient.log
log: /home/ci/adapter-logs
base_url: "http://{{ inventory_hostname }}/ambient-log"
@@ -81,6 +81,13 @@
src: radicle-ci-ambient.yaml
dest: /home/ci/radicle-ci-ambient.yaml
- name: "create directory for Ambient adapter admin logs"
file:
state: directory
path: /home/ci/adapter-logs
owner: ci
group: ci
- name: "download a virtual machine image for Ambient"
uri:
url: https://files.liw.fi/ambient/ambient.qcow2.xz
+2 -1
View File
@@ -99,6 +99,7 @@ qemu:
memory: 1G
lint: false
EOF
sudo install -d -o ci -g ci /home/ci/adapter-logs
sudo -i -u ci ambient config >/dev/null
log Install Caddy.
@@ -135,7 +136,7 @@ log Configure Ambient adapter.
sudo -i -u ci tee ~ci/radicle-ci-ambient.yaml <<EOF >/dev/null
image: /home/ci/ambient.qcow2
logdir: /srv/http/ambient-log
log: /home/ci/radicle-ci-ambient.log
log: /home/ci/adapter-logs
base_url: "http://$(hostname)/ambient-log"
EOF
install -d ~ci/.local/state/ambient-ci/projects -o ci -g ci