Skip to content

Commit

Permalink
Updates Kubernetes APT GPG keys (#76)
Browse files Browse the repository at this point in the history
* Update APT keys location for Kubernetes

* Updates boostrap.sh repo url

* Use .asc format for keys

* Revert git repo URL change
  • Loading branch information
mpiraux authored Sep 15, 2023
1 parent 217bb40 commit d463a34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/edgenet-kubernetes/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ containerd_apt_repository: "deb [arch={{ containerd_apt_arch }}] https://downloa
containerd_apt_gpg_key: "https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg"

kubernetes_apt_release_channel: main
kubernetes_apt_repository: "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] http://apt.kubernetes.io/ kubernetes-xenial {{ kubernetes_apt_release_channel }}"
kubernetes_apt_repository: "deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.asc] http://apt.kubernetes.io/ kubernetes-xenial {{ kubernetes_apt_release_channel }}"
kubernetes_apt_gpg_key: https://packages.cloud.google.com/apt/doc/apt-key.gpg

# RedHat
Expand Down
2 changes: 1 addition & 1 deletion roles/edgenet-kubernetes/tasks/kube-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- name: Ensure Kubernetes APT GPG key is present
get_url:
url: "{{ kubernetes_apt_gpg_key }}"
dest: /usr/share/keyrings/kubernetes-archive-keyring.gpg
dest: /etc/apt/keyrings/kubernetes-archive-keyring.asc

- name: Ensure Kubernetes APT repository is present
apt_repository:
Expand Down

0 comments on commit d463a34

Please sign in to comment.