Skip to content

Commit

Permalink
Merge pull request #1167 from ajdecon/release-22.04-signing-key-only
Browse files Browse the repository at this point in the history
[release-22.04] Update NVIDIA signing key for package repos
  • Loading branch information
ajdecon authored May 2, 2022
2 parents 405eb21 + 5d9c75c commit 1a7b13c
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 134 deletions.
21 changes: 0 additions & 21 deletions playbooks/nvidia-software/nvidia-ml.yml

This file was deleted.

10 changes: 0 additions & 10 deletions roles/nvidia-ml/defaults/main.yml

This file was deleted.

30 changes: 0 additions & 30 deletions roles/nvidia-ml/tasks/main.yml

This file was deleted.

18 changes: 0 additions & 18 deletions roles/nvidia-ml/tasks/redhat-pre-install.yml

This file was deleted.

10 changes: 0 additions & 10 deletions roles/nvidia-ml/tasks/ubuntu-pre-install.yml

This file was deleted.

2 changes: 0 additions & 2 deletions roles/nvidia-ml/vars/main.yml

This file was deleted.

7 changes: 4 additions & 3 deletions roles/nvidia_cuda/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ cuda_toolkit_add_profile_script: yes
epel_package: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
epel_key_url: "https://getfedora.org/static/fedora.gpg"
nvidia_driver_rhel_cuda_repo_baseurl: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _rhel_repo_dir }}/"
nvidia_driver_rhel_cuda_repo_gpgkey: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _rhel_repo_dir }}/7fa2af80.pub"
nvidia_driver_rhel_cuda_repo_gpgkey: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _rhel_repo_dir }}/D42D0685.pub"

# Ubuntu
nvidia_driver_ubuntu_cuda_repo_gpgkey_url: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _ubuntu_repo_dir }}/7fa2af80.pub"
nvidia_driver_ubuntu_cuda_repo_gpgkey_id: "7fa2af80"
old_nvidia_driver_ubuntu_cuda_repo_gpgkey_id: "7fa2af80"
nvidia_driver_ubuntu_cuda_repo_baseurl: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _ubuntu_repo_dir }}"
nvidia_driver_ubuntu_cuda_keyring_package: "cuda-keyring_1.0-1_all.deb"
nvidia_driver_ubuntu_cuda_keyring_url: "{{ nvidia_driver_ubuntu_cuda_repo_baseurl }}/{{ nvidia_driver_ubuntu_cuda_keyring_package }}"
3 changes: 0 additions & 3 deletions roles/nvidia_cuda/files/cuda-ubuntu.pin

This file was deleted.

27 changes: 12 additions & 15 deletions roles/nvidia_cuda/tasks/install-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,22 @@
repo: ppa:graphics-drivers/ppa
state: absent

- name: Ubuntu | add pin file
copy:
src: "cuda-ubuntu.pin"
dest: "/etc/apt/preferences.d/cuda-repository-pin-600"
owner: "root"
group: "root"
mode: "0644"

- name: Ubuntu | add key
- name: Ubuntu | ensure old key is absent
apt_key:
url: "{{ nvidia_driver_ubuntu_cuda_repo_gpgkey_url }}"
id: "{{ nvidia_driver_ubuntu_cuda_repo_gpgkey_id }}"
id: "{{ old_nvidia_driver_ubuntu_cuda_repo_gpgkey_id }}"
state: "absent"

- name: Ubuntu | install CUDA keyring
apt:
deb: "{{ nvidia_driver_ubuntu_cuda_keyring_url }}"
state: "present"
environment: "{{ proxy_env if proxy_env is defined else {} }}"

- name: Ubuntu | add CUDA repo
apt_repository:
repo: "deb {{ nvidia_driver_ubuntu_cuda_repo_baseurl }} /"
update_cache: yes
- name: Ubuntu | force apt update
apt:
update_cache: true
environment: "{{ proxy_env if proxy_env is defined else {} }}"
changed_when: false

- name: Ubuntu | install cuda
package:
Expand Down
7 changes: 4 additions & 3 deletions roles/nvidia_dcgm/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ dcgm_pkg_name: "datacenter-gpu-manager"
epel_package: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
epel_key_url: "https://getfedora.org/static/fedora.gpg"
nvidia_driver_rhel_cuda_repo_baseurl: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _rhel_repo_dir }}/"
nvidia_driver_rhel_cuda_repo_gpgkey: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _rhel_repo_dir }}/7fa2af80.pub"
nvidia_driver_rhel_cuda_repo_gpgkey: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _rhel_repo_dir }}/D42D0685.pub"

# Ubuntu
nvidia_driver_ubuntu_cuda_repo_gpgkey_url: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _ubuntu_repo_dir }}/7fa2af80.pub"
nvidia_driver_ubuntu_cuda_repo_gpgkey_id: "7fa2af80"
old_nvidia_driver_ubuntu_cuda_repo_gpgkey_id: "7fa2af80"
nvidia_driver_ubuntu_cuda_repo_baseurl: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _ubuntu_repo_dir }}"
nvidia_driver_ubuntu_cuda_keyring_package: "cuda-keyring_1.0-1_all.deb"
nvidia_driver_ubuntu_cuda_keyring_url: "{{ nvidia_driver_ubuntu_cuda_repo_baseurl }}/{{ nvidia_driver_ubuntu_cuda_keyring_package }}"
3 changes: 0 additions & 3 deletions roles/nvidia_dcgm/files/cuda-ubuntu.pin

This file was deleted.

27 changes: 12 additions & 15 deletions roles/nvidia_dcgm/tasks/install-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
---
- name: Ubuntu | add pin file
copy:
src: "cuda-ubuntu.pin"
dest: "/etc/apt/preferences.d/cuda-repository-pin-600"
owner: "root"
group: "root"
mode: "0644"

- name: Ubuntu | add key
- name: Ubuntu | remove old key
apt_key:
url: "{{ nvidia_driver_ubuntu_cuda_repo_gpgkey_url }}"
id: "{{ nvidia_driver_ubuntu_cuda_repo_gpgkey_id }}"
id: "{{ old_nvidia_driver_ubuntu_cuda_repo_gpgkey_id }}"
state: "absent"

- name: Ubuntu | install CUDA keyring
apt:
deb: "{{ nvidia_driver_ubuntu_cuda_keyring_url }}"
state: "present"
environment: "{{ proxy_env if proxy_env is defined else {} }}"

- name: Ubuntu | add CUDA repo
apt_repository:
repo: "deb {{ nvidia_driver_ubuntu_cuda_repo_baseurl }} /"
update_cache: yes
- name: Ubuntu | force apt update
apt:
update_cache: true
environment: "{{ proxy_env if proxy_env is defined else {} }}"
changed_when: false

- name: Ubuntu | install package
apt:
Expand Down
2 changes: 1 addition & 1 deletion roles/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ roles:
version: "v5.2.6"

- src: nvidia.nvidia_driver
version: "v2.2.0"
version: "v2.2.1"

- src: nvidia.nvidia_docker
version: "v1.2.4"
Expand Down

0 comments on commit 1a7b13c

Please sign in to comment.