Skip to content

Commit

Permalink
NR-324320-Add-fixed-version-for-agent-control
Browse files Browse the repository at this point in the history
  • Loading branch information
vjripoll committed Jan 14, 2025
1 parent 8ec70e9 commit 327770b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion recipes/newrelic/infrastructure/agent-control/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ install:
if [ ! -z "$HTTPS_PROXY" ]; then
OPTIONS="$OPTIONS -o Acquire::Http::Proxy={{.HTTPS_PROXY}}"
fi
apt-get $OPTIONS install newrelic-agent-control -y -qq
apt-get $OPTIONS install newrelic-agent-control={{.NEW_RELIC_AGENT_VERSION}} -y -qq
# Check the exit status of the previous command
if [ $? -ne 0 ]; then
echo "Error: newrelic-agent-control installation failed"
Expand All @@ -366,6 +366,8 @@ install:
echo "Installation is successful"
fi
fi
vars:
NEW_RELIC_AGENT_VERSION: "0.26.4"
silent: true

# If configured to do so, migrate the newrelic-infra configuration for usage with New Relic Agent Control
Expand Down
3 changes: 2 additions & 1 deletion recipes/newrelic/infrastructure/agent-control/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ install:
curl -s $AGENT_CONTROL_REPO_URL | sed 's/\[newrelic-infra]/\n[newrelic-agent-control]/g' >> /etc/yum.repos.d/newrelic-infra.repo
yum -y -q makecache --disablerepo='*' --enablerepo='newrelic-infra' --enablerepo='newrelic-agent-control'
yum -y -q install newrelic-agent-control
yum -y -q install newrelic-agent-control-{{.NEW_RELIC_AGENT_VERSION}}
if [ "{{.AMAZON_LINUX_VERSION}}" == "2" ] || [ "{{.AMAZON_LINUX_VERSION}}" == "2023" ] ; then
yum -y -q install fluent-bit
Expand All @@ -310,6 +310,7 @@ install:
DISTRO_VERSION:
sh: |
rpm -E %{rhel}
NEW_RELIC_AGENT_VERSION: "0.27.0"
silent: true

# If configured to do so, migrate the newrelic-infra configuration for usage with New Relic Agent Control
Expand Down
3 changes: 2 additions & 1 deletion recipes/newrelic/infrastructure/agent-control/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,12 @@ install:
- rpm --import newrelic_rpm_key_current.gpg
- zypper -n --quiet ref -r newrelic-infra
- zypper -n --quiet ref -r newrelic-agent-control
- zypper -n --quiet install newrelic-agent-control
- zypper -n --quiet install newrelic-agent-control={{.NEW_RELIC_AGENT_VERSION}}
- rm newrelic_rpm_key_current.gpg
vars:
SLES_VERSION:
sh: awk -F= '/VERSION_ID/ {print $2}' /etc/os-release
NEW_RELIC_AGENT_VERSION: "0.27.0"
silent: true

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

0 comments on commit 327770b

Please sign in to comment.