Skip to content

Use checksum verification for CernVM-FS GPG key #641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ansible/roles/eessi/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ cvmfs_config_default:
cvmfs_config_overrides: {}

cvmfs_config: "{{ cvmfs_config_default | combine(cvmfs_config_overrides) }}"

cvmfs_gpg_checksum: "sha256:4ac81adff957565277cfa6a4a330cdc2ce5a8fdd73b8760d1a5a32bef71c4bd6"
9 changes: 5 additions & 4 deletions ansible/roles/eessi/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
- name: Download Cern GPG key
ansible.builtin.get_url:
url: http://cvmrepo.web.cern.ch/cvmrepo/yum/RPM-GPG-KEY-CernVM
url: http://cvmrepo.web.cern.ch/cvmrepo/yum/RPM-GPG-KEY-CernVM
dest: ./cvmfs-key.gpg
checksum: "{{ cvmfs_gpg_checksum }}"

- name: Import downloaded GPG key
command: rpm --import cvmfs-key.gpg
Expand All @@ -24,7 +25,7 @@

# Alternative version using official repo - still no GPG key :(
# - name: Add EESSI repo
# dnf:
# dnf:
# name: http://repo.eessi-infra.org/eessi/rhel/8/noarch/eessi-release-0-1.noarch.rpm

# - name: Install EESSI CVMFS config
Expand All @@ -39,9 +40,9 @@
value: "{{ item.value }}"
no_extra_spaces: true
loop: "{{ cvmfs_config | dict2items }}"


# NOTE: Not clear how to make this idempotent
- name: Ensure CVMFS config is setup
command:
cmd: "cvmfs_config setup"
cmd: "cvmfs_config setup"