Skip to content

Commit 53caa74

Browse files
committed
Update signing key for nvidia_dcgm role
1 parent 124012a commit 53caa74

3 files changed

Lines changed: 11 additions & 22 deletions

File tree

roles/nvidia_dcgm/defaults/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ dcgm_pkg_name: "datacenter-gpu-manager"
55
epel_package: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
66
epel_key_url: "https://getfedora.org/static/fedora.gpg"
77
nvidia_driver_rhel_cuda_repo_baseurl: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _rhel_repo_dir }}/"
8-
nvidia_driver_rhel_cuda_repo_gpgkey: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _rhel_repo_dir }}/7fa2af80.pub"
8+
nvidia_driver_rhel_cuda_repo_gpgkey: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _rhel_repo_dir }}/D42D0685.pub"
99

1010
# Ubuntu
11-
nvidia_driver_ubuntu_cuda_repo_gpgkey_url: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _ubuntu_repo_dir }}/7fa2af80.pub"
12-
nvidia_driver_ubuntu_cuda_repo_gpgkey_id: "7fa2af80"
11+
old_nvidia_driver_ubuntu_cuda_repo_gpgkey_id: "7fa2af80"
1312
nvidia_driver_ubuntu_cuda_repo_baseurl: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _ubuntu_repo_dir }}"
13+
nvidia_driver_ubuntu_cuda_keyring_package: "cuda-keyring_1.0-1_all.deb"
14+
nvidia_driver_ubuntu_cuda_keyring_url: "{{ nvidia_driver_ubuntu_cuda_repo_baseurl }}/{{ nvidia_driver_ubuntu_cuda_keyring_package }}"

roles/nvidia_dcgm/files/cuda-ubuntu.pin

Lines changed: 0 additions & 3 deletions
This file was deleted.

roles/nvidia_dcgm/tasks/install-ubuntu.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
---
2-
- name: Ubuntu | add pin file
3-
copy:
4-
src: "cuda-ubuntu.pin"
5-
dest: "/etc/apt/preferences.d/cuda-repository-pin-600"
6-
owner: "root"
7-
group: "root"
8-
mode: "0644"
9-
10-
- name: Ubuntu | add key
2+
- name: Ubuntu | remove old key
113
apt_key:
12-
url: "{{ nvidia_driver_ubuntu_cuda_repo_gpgkey_url }}"
13-
id: "{{ nvidia_driver_ubuntu_cuda_repo_gpgkey_id }}"
14-
environment: "{{ proxy_env if proxy_env is defined else {} }}"
4+
id: "{{ old_nvidia_driver_ubuntu_cuda_repo_gpgkey_id }}"
5+
state: "absent"
156

16-
- name: Ubuntu | add CUDA repo
17-
apt_repository:
18-
repo: "deb {{ nvidia_driver_ubuntu_cuda_repo_baseurl }} /"
19-
update_cache: yes
7+
- name: Ubuntu | install CUDA keyring
8+
apt:
9+
deb: "{{ nvidia_driver_ubuntu_cuda_keyring_url }}"
10+
state: "present"
2011
environment: "{{ proxy_env if proxy_env is defined else {} }}"
2112

2213
- name: Ubuntu | install package

0 commit comments

Comments
 (0)