Skip to content

Commit 58a996b

Browse files
committed
NR-324320-Add-fixed-version-for-agent-control
1 parent 8ec70e9 commit 58a996b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

recipes/newrelic/infrastructure/agent-control/debian.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,12 @@ install:
344344
install_agent_control:
345345
cmds:
346346
- |
347+
NEW_RELIC_AGENT_VERSION=0.27.0
347348
OPTIONS="-o DPkg::Lock::Timeout=60"
348349
if [ ! -z "$HTTPS_PROXY" ]; then
349350
OPTIONS="$OPTIONS -o Acquire::Http::Proxy={{.HTTPS_PROXY}}"
350351
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
352353
# Check the exit status of the previous command
353354
if [ $? -ne 0 ]; then
354355
echo "Error: newrelic-agent-control installation failed"

recipes/newrelic/infrastructure/agent-control/rhel.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ install:
301301
curl -s $AGENT_CONTROL_REPO_URL | sed 's/\[newrelic-infra]/\n[newrelic-agent-control]/g' >> /etc/yum.repos.d/newrelic-infra.repo
302302
303303
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}}
305305
306306
if [ "{{.AMAZON_LINUX_VERSION}}" == "2" ] || [ "{{.AMAZON_LINUX_VERSION}}" == "2023" ] ; then
307307
yum -y -q install fluent-bit
@@ -310,6 +310,7 @@ install:
310310
DISTRO_VERSION:
311311
sh: |
312312
rpm -E %{rhel}
313+
NEW_RELIC_AGENT_VERSION: "0.27.0"
313314
silent: true
314315

315316
# If configured to do so, migrate the newrelic-infra configuration for usage with New Relic Agent Control

recipes/newrelic/infrastructure/agent-control/suse.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,12 @@ install:
252252
- rpm --import newrelic_rpm_key_current.gpg
253253
- zypper -n --quiet ref -r newrelic-infra
254254
- 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}}
256256
- rm newrelic_rpm_key_current.gpg
257257
vars:
258258
SLES_VERSION:
259259
sh: awk -F= '/VERSION_ID/ {print $2}' /etc/os-release
260+
NEW_RELIC_AGENT_VERSION: "0.27.0"
260261
silent: true
261262

262263
# If configured to do so, migrate the newrelic-infra configuration for usage with New Relic Agent Control

0 commit comments

Comments
 (0)