|
@@ -7,15 +7,14 @@
|
|
|
|
|
|
remote_file ::File.join(Chef::Config['file_cache_path'], 'devel_kubic_libcontainer_stable.key') do
|
|
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'
|
|
source 'https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/Debian_Unstable/Release.key'
|
|
- action :create_if_missing
|
|
|
|
|
|
+ action :delete
|
|
end
|
|
end
|
|
|
|
|
|
key_path = '/etc/apt/trusted.gpg.d'
|
|
key_path = '/etc/apt/trusted.gpg.d'
|
|
key_stable = ::File.join(key_path, 'devel_kubic_libcontainers_stable.gpg')
|
|
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
|
|
end
|
|
|
|
|
|
apt_repository 'devel_kubic_libcontainer_stable' do
|
|
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/'
|
|
uri 'http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_11/'
|
|
distribution '/'
|
|
distribution '/'
|
|
deb_src true
|
|
deb_src true
|
|
- action :add
|
|
|
|
|
|
+ action :delete
|
|
end
|
|
end
|
|
|
|
|
|
package %w{
|
|
package %w{
|