sous-chefs / apt

Development repository for the apt cookbook
https://supermarket.chef.io/cookbooks/apt
Apache License 2.0
202 stars 266 forks source link

apt_package resource should support source #245

Closed kmf closed 3 years ago

kmf commented 4 years ago

I think the apt_package resource should support a source, you can use something like dpkg_package but this doesn't handle package dependencies.

    remote_file '/tmp/google-chrome-stable_current_amd64.deb' do
      source 'https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb'
      action :create
    end

    apt_update 'update'

    execute 'install Chrome' do
      command 'apt install -y /tmp/google-chrome-stable_current_amd64.deb'
      action :run
    end   

The Dream:

   apt_update 'update'

   apt_package 'install Chrome' do
       source 'https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb'
       action :install
   end
majormoses commented 4 years ago

This should be migrated to the chef/chef repo as the functionality has been moved over. See: https://github.com/chef/chef/blob/v15.7.4/lib/chef/resource/apt_package.rb for more details.

kmf commented 4 years ago

@majormoses should I log the issue there?

github-actions[bot] commented 3 years ago

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

github-actions[bot] commented 3 years ago

Closing due to inactivity. If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.