From 978676189acf8249807f6e8d4c9e0a615e71b8fc Mon Sep 17 00:00:00 2001 From: Darron Froese Date: Thu, 23 Jul 2015 14:31:34 -0600 Subject: [PATCH] Add apt-transport-https to the repository install. In preparation for HTTPS repo. Closes #219 Signed-off-by: Mike Fiedler --- recipes/repository.rb | 4 ++++ spec/dd-agent_spec.rb | 4 ++++ 2 files changed, 8 insertions(+) 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 9a5af252..b5ffa380 100644 --- a/spec/dd-agent_spec.rb +++ b/spec/dd-agent_spec.rb @@ -16,6 +16,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