diff --git a/recipes/repository.rb b/recipes/repository.rb index 2c9eb54e..94b6cd9a 100644 --- a/recipes/repository.rb +++ b/recipes/repository.rb @@ -21,6 +21,10 @@ when 'debian' include_recipe 'apt' + package 'apt-transport-https' do + action :install + end + apt_repository 'datadog' do keyserver 'hkp://keyserver.ubuntu.com:80' key 'C7A7DA52' diff --git a/spec/dd-agent_spec.rb b/spec/dd-agent_spec.rb index 761ea6a6..cbb2d1a7 100644 --- a/spec/dd-agent_spec.rb +++ b/spec/dd-agent_spec.rb @@ -50,6 +50,10 @@ it 'sets up an apt repo' do expect(@chef_run).to add_apt_repository('datadog') end + + it 'installs apt-transport-https' do + expect(@chef_run). to install_package('apt-transport-https') + end end shared_examples_for 'rhellions' do