apt_package resource should support source
kmf opened this issue · 4 comments
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
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.
@majormoses should I log the issue there?
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.
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.