From a65c65eb9b784bf4d9a3158d8dc666eda8c4e4ed Mon Sep 17 00:00:00 2001 From: Bartlomiej Palmowski Date: Thu, 7 Apr 2016 12:05:46 +0100 Subject: [PATCH 1/2] Run apt-get update before installing the package. --- manifests/server/linux.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manifests/server/linux.pp b/manifests/server/linux.pp index 427d1c0..dd0350c 100644 --- a/manifests/server/linux.pp +++ b/manifests/server/linux.pp @@ -64,6 +64,12 @@ require => Class['newrelic::params'], } + case $::osfamily { + 'Debian': { + Exec[apt_update] -> Package[$newrelic_package_name] + } + } + if ! $newrelic_nrsysmond_logfile { $logdir = '/var/log/newrelic' } else { From 3fb3a1c303d1ab69fc9d8959229ae298f83c538a Mon Sep 17 00:00:00 2001 From: Bartlomiej Palmowski Date: Thu, 7 Apr 2016 12:10:20 +0100 Subject: [PATCH 2/2] Run apt-get update also in case of Ubuntu. --- manifests/server/linux.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/server/linux.pp b/manifests/server/linux.pp index dd0350c..5bc0424 100644 --- a/manifests/server/linux.pp +++ b/manifests/server/linux.pp @@ -65,7 +65,7 @@ } case $::osfamily { - 'Debian': { + 'Debian', 'Ubuntu': { Exec[apt_update] -> Package[$newrelic_package_name] } }