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

fb_apt: Significant updates #250

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jaymzh
Copy link
Collaborator

@jaymzh jaymzh commented Feb 3, 2025

  • Deprecate node['fb_apt']['repos'] which was always a bad API
    (sorry), and replace it with node['fb_apt']['sources'] which
    integrates nicely with the new node['fb_apt']['keymap']
  • Deprecate node['fb_apt']['keys'] which was very broken on modern
    apt and replace it with a new node['fb_apt']['keymap']
  • Update syntax for security and update repos on modern debian and
    ubuntu
  • Remove old Ubuntu 16 cruft
  • Lots of cleanups and refactoring for readability

Signed-off-by: Phil Dibowitz [email protected]

}
# fb_apt must be defined for this to work...
keys = FB::Apt.get_official_keyids(node).map { |id| [id, nil] }.to_h
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is OK because we only look at keyis in /etc/trusted.gpg now, not all keyids in /etc/trusted.gpg.d/* - as those are cleaned up separately.

@jaymzh jaymzh requested a review from dafyddcrosby February 3, 2025 10:25
* Deprecate `node['fb_apt']['repos']` which was always a bad API
  (sorry), and replace it with `node['fb_apt']['sources']` which
  integrates nicely with the new `node['fb_apt']['keymap']`
* Deprecate `node['fb_apt']['keys']` which was very broken on modern
  apt and replace it with a new `node['fb_apt']['keymap']`
* Update syntax for security and update repos on modern debian and
  ubuntu
* Remove old Ubuntu 16 cruft
* Lots of cleanups and refactoring for readability

Signed-off-by: Phil Dibowitz <[email protected]>
@jaymzh jaymzh force-pushed the fb_apt_modernization branch from ebc93be to 1fe7d2c Compare February 4, 2025 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants