فهرست منبع

fix(podman): Fix gpg keys

STATE:
Without the libkubic gpgp key installed before the repository setup,
chef ends up failing because the cache cannot be updated.

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 2 سال پیش
والد
کامیت
db957898aa
1فایلهای تغییر یافته به همراه7 افزوده شده و 7 حذف شده
  1. 7 7
      cookbooks/workstation/recipes/_podman.rb

+ 7 - 7
cookbooks/workstation/recipes/_podman.rb

@@ -4,13 +4,6 @@
 #
 # Copyright:: 2022, The Authors, All Rights Reserved.
 
-apt_repository 'devel_kubic_libcontainer_stable' do
-  arch 'amd64'
-  uri 'http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_11/'
-  distribution '/'
-  deb_src true
-  action :add
-end
 
 remote_file ::File.join(Chef::Config['file_cache_path'], 'devel_kubic_libcontainer_stable.key') do
   source 'https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/Debian_Unstable/Release.key'
@@ -25,6 +18,13 @@ execute 'GPG key for devel_kubic_libcontainer_stable' do
   not_if { ::File.exist?(key_stable) }
 end
 
+apt_repository 'devel_kubic_libcontainer_stable' do
+  arch 'amd64'
+  uri 'http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_11/'
+  distribution '/'
+  deb_src true
+  action :add
+end
 
 package ['uidmap', 'fuse-overlayfs', 'containernetworking-plugins', 'slirp4netns', 'buildah']