Skip to content

Commit 51b4b79

Browse files
authored
Merge pull request #17 from EthDevOps/push-voltrzxkwzrp
add debian bookworm repo to patchman
2 parents 69008df + cefafd5 commit 51b4b79

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

roles/bootstrap/tasks/deploy_patchman.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,31 @@
1313
loop:
1414
- /etc/apt/sources.list.d/repo_openbytes_ie_patchman_debian.list
1515
- /etc/apt/sources.list.d/repo_openbytes_ie_patchman_ubuntu.list
16-
# Debian: openbytes ships openbytes-1.gpg for trixie+ because the original key
17-
# has malformed binding signatures that trixie's sqv verifier rejects.
18-
# Ubuntu: the patchman/ubuntu repo is signed with a different key (551582C0FCAAD24A)
19-
# not present in openbytes.gpg or openbytes-1.gpg; fetch it from keyserver instead.
20-
- name: Get openbytes apt key (Debian)
16+
# Debian trixie+: openbytes ships openbytes-1.gpg because the original key has
17+
# malformed binding signatures that trixie's sqv verifier rejects.
18+
# Debian bookworm / Ubuntu: the patchman repo is signed with key 551582C0FCAAD24A
19+
# which is not present in openbytes.gpg or openbytes-1.gpg; fetch from keyserver.
20+
- name: Get openbytes apt key (Debian trixie+)
2121
ansible.builtin.get_url:
22-
url: "{{ 'https://repo.openbytes.ie/openbytes-1.gpg' if ansible_facts['distribution_release'] in ['trixie', 'forky'] else 'https://repo.openbytes.ie/openbytes.gpg' }}"
22+
url: "https://repo.openbytes.ie/openbytes-1.gpg"
2323
dest: /etc/apt/keyrings/openbytes.gpg
2424
force: true
25-
when: ansible_facts['distribution'] == 'Debian'
25+
when: ansible_facts['distribution'] == 'Debian' and ansible_facts['distribution_release'] in ['trixie', 'forky']
2626
notify:
2727
- Update apt cache
28-
- name: Download openbytes apt key (Ubuntu)
28+
- name: Download openbytes apt key from keyserver (Debian bookworm / Ubuntu)
2929
ansible.builtin.get_url:
3030
url: "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x551582C0FCAAD24A&options=mr"
3131
dest: /tmp/openbytes.asc
3232
force: true
33-
when: ansible_facts['distribution'] == 'Ubuntu'
34-
- name: Install openbytes apt key (Ubuntu)
33+
when: ansible_facts['distribution'] == 'Ubuntu' or
34+
(ansible_facts['distribution'] == 'Debian' and ansible_facts['distribution_release'] not in ['trixie', 'forky'])
35+
- name: Install openbytes apt key from keyserver (Debian bookworm / Ubuntu)
3536
ansible.builtin.command:
3637
cmd: gpg --batch --yes --dearmor -o /etc/apt/keyrings/openbytes.gpg /tmp/openbytes.asc
3738
changed_when: true
38-
when: ansible_facts['distribution'] == 'Ubuntu'
39+
when: ansible_facts['distribution'] == 'Ubuntu' or
40+
(ansible_facts['distribution'] == 'Debian' and ansible_facts['distribution_release'] not in ['trixie', 'forky'])
3941
notify:
4042
- Update apt cache
4143
- name: Add openbytes repo

0 commit comments

Comments
 (0)