Sfoglia il codice sorgente

fix(podman): Remove Kubic repository

The Kubicx repository is not the official repository for podman for distributions after 2022

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 2 anni fa
parent
commit
aa4446ae46
1 ha cambiato i file con 4 aggiunte e 5 eliminazioni
  1. 4 5
      cookbooks/apt_repositories/recipes/_podman.rb

+ 4 - 5
cookbooks/apt_repositories/recipes/_podman.rb

@@ -7,15 +7,14 @@
 
 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'
-  action :create_if_missing
+  action :delete
 end
 
 key_path = '/etc/apt/trusted.gpg.d'
 key_stable = ::File.join(key_path, 'devel_kubic_libcontainers_stable.gpg')
 
-execute 'GPG key for devel_kubic_libcontainer_stable' do
-  command "cat #{::File.join(Chef::Config['file_cache_path'], 'devel_kubic_libcontainer_stable.key')} | gpg --dearmor | tee #{key_stable} > /dev/null"
-  not_if { ::File.exist?(key_stable) }
+file key_stable do
+  action :delete
 end
 
 apt_repository 'devel_kubic_libcontainer_stable' do
@@ -23,7 +22,7 @@ apt_repository 'devel_kubic_libcontainer_stable' do
   uri 'http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_11/'
   distribution '/'
   deb_src true
-  action :add
+  action :delete
 end
 
 package %w{