_systemd-genie.rb 639 B

12345678910111213141516171819202122232425
  1. #
  2. # Cookbook:: workstation
  3. # Recipe:: _podman
  4. #
  5. # Copyright:: 2022, The Authors, All Rights Reserved.
  6. package 'lsb-release'
  7. key_path = '/etc/apt/trusted.gpg.d'
  8. gpg_key = ::File.join(key_path, 'wsl-transdebian.gpg')
  9. remote_file gpg_key do
  10. source 'https://arkane-systems.github.io/wsl-transdebian/apt/wsl-transdebian.gpg'
  11. action :create_if_missing
  12. end
  13. apt_repository 'wsl_transdebian' do
  14. arch 'amd64'
  15. uri 'https://arkane-systems.github.io/wsl-transdebian/apt/'
  16. distribution lazy { Mixlib::ShellOut.new('lsb_release -cs').run_command.stdout.chomp }
  17. components ['main']
  18. deb_src true
  19. action :add
  20. end
  21. package 'systemd-genie'