Skip to content
This repository was archived by the owner on Feb 18, 2020. It is now read-only.

Commit 00cbc77

Browse files
committed
rely on apt cookbook to install package 'apt-transport-https'
1 parent 4710db2 commit 00cbc77

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

metadata.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
recipe "gocd::agent_linux", "Install and configures Linux Go agent"
1818
recipe "gocd::server_linux", "Install and configures Linux Go server"
1919

20-
depends "apt"
20+
depends "apt", ">= 3.0.0"
2121
depends "java"
2222
depends "yum"
2323
depends "windows"

recipes/repository.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
case node['platform_family']
22
when 'debian'
33
include_recipe 'apt'
4-
package 'apt-transport-https'
54

65
apt_repository 'gocd' do
76
uri apt_uri

spec/shared_examples.rb

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
it 'includes apt recipe' do
66
expect(chef_run).to include_recipe('apt')
77
end
8+
it 'installs package apt-transport-https' do
9+
expect(chef_run).to install_package('apt-transport-https')
10+
end
811
it 'adds gocd apt repository' do
912
expect(chef_run).to add_apt_repository('gocd').with(
1013
uri: 'https://download.go.cd',

0 commit comments

Comments
 (0)