From 327770b51ae405e892243fbfd78a4b721ad64e90 Mon Sep 17 00:00:00 2001 From: vjripoll Date: Mon, 13 Jan 2025 17:56:24 +0100 Subject: [PATCH] NR-324320-Add-fixed-version-for-agent-control --- recipes/newrelic/infrastructure/agent-control/debian.yml | 4 +++- recipes/newrelic/infrastructure/agent-control/rhel.yml | 3 ++- recipes/newrelic/infrastructure/agent-control/suse.yml | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/recipes/newrelic/infrastructure/agent-control/debian.yml b/recipes/newrelic/infrastructure/agent-control/debian.yml index 704251af2..f42e258a3 100644 --- a/recipes/newrelic/infrastructure/agent-control/debian.yml +++ b/recipes/newrelic/infrastructure/agent-control/debian.yml @@ -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" @@ -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 diff --git a/recipes/newrelic/infrastructure/agent-control/rhel.yml b/recipes/newrelic/infrastructure/agent-control/rhel.yml index c008907ab..ca7cfda92 100644 --- a/recipes/newrelic/infrastructure/agent-control/rhel.yml +++ b/recipes/newrelic/infrastructure/agent-control/rhel.yml @@ -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 @@ -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 diff --git a/recipes/newrelic/infrastructure/agent-control/suse.yml b/recipes/newrelic/infrastructure/agent-control/suse.yml index 43e771357..23c1cc95f 100644 --- a/recipes/newrelic/infrastructure/agent-control/suse.yml +++ b/recipes/newrelic/infrastructure/agent-control/suse.yml @@ -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