Skip to content

Commit

Permalink
Use SSL for nginx APT repository
Browse files Browse the repository at this point in the history
  • Loading branch information
saz committed Nov 14, 2016
1 parent 9476eb5 commit 0146e7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manifests/package/debian.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
case $package_source {
'nginx', 'nginx-stable': {
apt::source { 'nginx':
location => "http://nginx.org/packages/${distro}",
location => "https://nginx.org/packages/${distro}",
repos => 'nginx',
key => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62',
}
}
'nginx-mainline': {
apt::source { 'nginx':
location => "http://nginx.org/packages/mainline/${distro}",
location => "https://nginx.org/packages/mainline/${distro}",
repos => 'nginx',
key => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62',
}
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/package_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
it { is_expected.not_to contain_package('passenger') }
it do
is_expected.to contain_apt__source('nginx').with(
'location' => "http://nginx.org/packages/#{operatingsystem.downcase}",
'location' => "https://nginx.org/packages/#{operatingsystem.downcase}",
'repos' => 'nginx',
'key' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62'
)
Expand All @@ -120,7 +120,7 @@
let(:params) { { package_source: 'nginx-mainline' } }
it do
is_expected.to contain_apt__source('nginx').with(
'location' => "http://nginx.org/packages/mainline/#{operatingsystem.downcase}"
'location' => "https://nginx.org/packages/mainline/#{operatingsystem.downcase}"
)
end
end
Expand Down

0 comments on commit 0146e7f

Please sign in to comment.