fix: optionally use a predefined Radicle node key

This commit is contained in:
Lars Wirzenius
2026-05-26 18:21:14 +03:00
parent c11554ad1f
commit 88320f0319
+30 -1
View File
@@ -96,7 +96,35 @@
unxz --keep --force "$x.xz"
fi
- name: "set up Radicle node"
- name: "create ~ci/.radicle/keys"
when: radicle_ci_node_key is defined
file:
state: directory
path: /home/ci/.radicle/keys
owner: ci
group: ci
- name: "change Radicle node to use predefined key"
when: radicle_ci_node_key is defined
copy:
content: |
{{ radicle_ci_node_key }}
dest: /home/ci/.radicle/keys/radicle
- name: "change Radicle node to use predefined public key"
when: radicle_ci_node_key_pub is defined
copy:
content: |
{{ radicle_ci_node_key_pub }}
dest: /home/ci/.radicle/keys/radicle.pub
- name: "set up Radicle node configuration"
when: radicle_ci_node_key is defined
shell: |
sudo -i -u ci rad config init --alias "ci-{{ inventory_hostname }}"
- name: "set up Radicle node with new key"
when: radicle_ci_node_key is undefined
shell: |
sudo -i -u ci rad auth --alias "ci-{{ inventory_hostname }}" --stdin </dev/null
@@ -128,3 +156,4 @@
systemd:
name: radicle-ci-broker
state: restarted