mirror of
https://seed.radicle.dev/rad:zwTxygwuz5LDGBq255RA2CbNGrz8.git
synced 2026-10-18 19:30:29 +08:00
feat: in the install script and playbook, put adapter logs in directory
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
image: /home/ci/ambient.qcow2
|
image: /home/ci/ambient.qcow2
|
||||||
logdir: /srv/http/ambient-log
|
logdir: /srv/http/ambient-log
|
||||||
log: /home/ci/radicle-ci-ambient.log
|
log: /home/ci/adapter-logs
|
||||||
base_url: "http://{{ inventory_hostname }}/ambient-log"
|
base_url: "http://{{ inventory_hostname }}/ambient-log"
|
||||||
|
|
||||||
|
|||||||
@@ -81,6 +81,13 @@
|
|||||||
src: radicle-ci-ambient.yaml
|
src: radicle-ci-ambient.yaml
|
||||||
dest: /home/ci/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"
|
- name: "download a virtual machine image for Ambient"
|
||||||
uri:
|
uri:
|
||||||
url: https://files.liw.fi/ambient/ambient.qcow2.xz
|
url: https://files.liw.fi/ambient/ambient.qcow2.xz
|
||||||
|
|||||||
+2
-1
@@ -99,6 +99,7 @@ qemu:
|
|||||||
memory: 1G
|
memory: 1G
|
||||||
lint: false
|
lint: false
|
||||||
EOF
|
EOF
|
||||||
|
sudo install -d -o ci -g ci /home/ci/adapter-logs
|
||||||
sudo -i -u ci ambient config >/dev/null
|
sudo -i -u ci ambient config >/dev/null
|
||||||
|
|
||||||
log Install Caddy.
|
log Install Caddy.
|
||||||
@@ -135,7 +136,7 @@ log Configure Ambient adapter.
|
|||||||
sudo -i -u ci tee ~ci/radicle-ci-ambient.yaml <<EOF >/dev/null
|
sudo -i -u ci tee ~ci/radicle-ci-ambient.yaml <<EOF >/dev/null
|
||||||
image: /home/ci/ambient.qcow2
|
image: /home/ci/ambient.qcow2
|
||||||
logdir: /srv/http/ambient-log
|
logdir: /srv/http/ambient-log
|
||||||
log: /home/ci/radicle-ci-ambient.log
|
log: /home/ci/adapter-logs
|
||||||
base_url: "http://$(hostname)/ambient-log"
|
base_url: "http://$(hostname)/ambient-log"
|
||||||
EOF
|
EOF
|
||||||
install -d ~ci/.local/state/ambient-ci/projects -o ci -g ci
|
install -d ~ci/.local/state/ambient-ci/projects -o ci -g ci
|
||||||
|
|||||||
Reference in New Issue
Block a user