Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BOR-513: Improve fb_apt_keys for Ubuntu support #22

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cookbooks/fb_apt/resources/keys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
Chef::Log.debug("fb_apt[keys]: Processing new keyid #{keyid}")
if key
execute "add key for #{keyid} to APT" do
command "echo '#{key}' | apt-key add -"
command "echo '#{key}' | gpg --batch --dearmor -o /etc/apt/keyrings/#{keyid}.gpg"
creates "/etc/apt/keyrings/#{keyid}.gpg"
end
elsif keyserver
execute "fetch and add key for keyid #{keyid} to APT" do
Expand Down