Skip to content

Commit

Permalink
Specify that only amd64 arch is available on this apt repo
Browse files Browse the repository at this point in the history
The download.newrelic.com apt repo doesn't provide i386 packages, leading to errors when apt tries to update its package index, even on amd64 machines.

By specifying the arch parameter, we're telling Apt that only amd64 packages are available here.

We also add a trailing slash to the URL, because the NR repo server can list empty dirs otherwise.
  • Loading branch information
Yggdrasil committed Apr 4, 2018
1 parent 0e72674 commit f8dcbe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/repo/infra.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
$require = Apt::Source['newrelic-infra']
ensure_packages('apt-transport-https')
::apt::source { 'newrelic-infra':
location => 'https://download.newrelic.com/infrastructure_agent/linux/apt',
location => '[arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt/',
repos => 'main',
key => {
id => 'A758B3FBCD43BE8D123A3476BB29EE038ECCE87C',
Expand Down

0 comments on commit f8dcbe5

Please sign in to comment.