File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
recipes/newrelic/infrastructure/agent-control Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -344,11 +344,12 @@ install:
344
344
install_agent_control :
345
345
cmds :
346
346
- |
347
+ NEW_RELIC_AGENT_VERSION=0.27.0
347
348
OPTIONS="-o DPkg::Lock::Timeout=60"
348
349
if [ ! -z "$HTTPS_PROXY" ]; then
349
350
OPTIONS="$OPTIONS -o Acquire::Http::Proxy={{.HTTPS_PROXY}}"
350
351
fi
351
- apt-get $OPTIONS install newrelic-agent-control -y -qq
352
+ apt-get $OPTIONS install newrelic-agent-control="$NEW_RELIC_AGENT_VERSION" -y -qq
352
353
# Check the exit status of the previous command
353
354
if [ $? -ne 0 ]; then
354
355
echo "Error: newrelic-agent-control installation failed"
Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ install:
301
301
curl -s $AGENT_CONTROL_REPO_URL | sed 's/\[newrelic-infra]/\n[newrelic-agent-control]/g' >> /etc/yum.repos.d/newrelic-infra.repo
302
302
303
303
yum -y -q makecache --disablerepo='*' --enablerepo='newrelic-infra' --enablerepo='newrelic-agent-control'
304
- yum -y -q install newrelic-agent-control
304
+ yum -y -q install newrelic-agent-control-{{.NEW_RELIC_AGENT_VERSION}}
305
305
306
306
if [ "{{.AMAZON_LINUX_VERSION}}" == "2" ] || [ "{{.AMAZON_LINUX_VERSION}}" == "2023" ] ; then
307
307
yum -y -q install fluent-bit
@@ -310,6 +310,7 @@ install:
310
310
DISTRO_VERSION :
311
311
sh : |
312
312
rpm -E %{rhel}
313
+ NEW_RELIC_AGENT_VERSION : " 0.27.0"
313
314
silent : true
314
315
315
316
# If configured to do so, migrate the newrelic-infra configuration for usage with New Relic Agent Control
Original file line number Diff line number Diff line change @@ -252,11 +252,12 @@ install:
252
252
- rpm --import newrelic_rpm_key_current.gpg
253
253
- zypper -n --quiet ref -r newrelic-infra
254
254
- zypper -n --quiet ref -r newrelic-agent-control
255
- - zypper -n --quiet install newrelic-agent-control
255
+ - zypper -n --quiet install newrelic-agent-control={{.NEW_RELIC_AGENT_VERSION}}
256
256
- rm newrelic_rpm_key_current.gpg
257
257
vars :
258
258
SLES_VERSION :
259
259
sh : awk -F= '/VERSION_ID/ {print $2}' /etc/os-release
260
+ NEW_RELIC_AGENT_VERSION : " 0.27.0"
260
261
silent : true
261
262
262
263
# If configured to do so, migrate the newrelic-infra configuration for usage with New Relic Agent Control
You can’t perform that action at this time.
0 commit comments