Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/apache/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ install:

sudo mkdir -p "/etc/newrelic-infra/integrations.d"
# Get latest definitions and skip any failure because of deprecation
sudo apt-get install nri-apache -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-apache-fips..."
sudo apt-get install nri-apache-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-apache..."
sudo apt-get install nri-apache -y
fi

if [ -f /etc/newrelic-infra/integrations.d/apache-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/apache-config.yml;
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/apache/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,13 @@ install:

sudo mkdir -p "/etc/newrelic-infra/integrations.d"
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
sudo yum install nri-apache -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-apache-fips..."
sudo yum install nri-apache-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-apache..."
sudo yum install nri-apache -y
fi

if [ -f /etc/newrelic-infra/integrations.d/apache-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/apache-config.yml;
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/cassandra/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,13 @@ install:

# Get latest definitions and skip any failure because of deprecation
sudo apt-get -o Acquire::Check-Valid-Until=false update -yq
sudo apt-get install nri-cassandra -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-cassandra-fips..."
sudo apt-get install nri-cassandra-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-cassandra..."
sudo apt-get install nri-cassandra -y
fi

if [ -f /etc/newrelic-infra/integrations.d/cassandra-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/cassandra-config.yml;
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/cassandra/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,13 @@ install:

sudo mkdir -p "/etc/newrelic-infra/integrations.d"
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
sudo yum install nri-cassandra -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-cassandra-fips..."
sudo yum install nri-cassandra-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-cassandra..."
sudo yum install nri-cassandra -y
fi

if [ -f /etc/newrelic-infra/integrations.d/cassandra-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/cassandra-config.yml;
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/consul/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,13 @@ install:
# Get latest definitions and skip any failure because of deprecation
sudo apt-get -o Acquire::Check-Valid-Until=false update -yq
- |
sudo apt-get install nri-consul -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-consul-fips..."
sudo apt-get install nri-consul-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-consul..."
sudo apt-get install nri-consul -y
fi
- |
if [ -f /etc/newrelic-infra/integrations.d/consul-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/consul-config.yml;
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/consul/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,13 @@ install:
- |
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-consul -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-consul-fips..."
sudo yum install nri-consul-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-consul..."
sudo yum install nri-consul -y
fi
- |
if [ -f /etc/newrelic-infra/integrations.d/consul-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/consul-config.yml;
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/couchbase/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,13 @@ install:
# Get latest definitions and skip any failure because of deprecation
sudo apt-get -o Acquire::Check-Valid-Until=false update -yq
- |
sudo apt-get install nri-couchbase -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-couchbase-fips..."
sudo apt-get install nri-couchbase-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-couchbase..."
sudo apt-get install nri-couchbase -y
fi
- |
if [ -f /etc/newrelic-infra/integrations.d/couchbase-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/couchbase-config.yml;
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/couchbase/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ install:
- |
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-couchbase -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-couchbase-fips..."
sudo yum install nri-couchbase-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-couchbase..."
sudo yum install nri-couchbase -y
fi
- |
if [ -f /etc/newrelic-infra/integrations.d/couchbase-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/couchbase-config.yml;
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/elasticsearch/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,13 @@ install:
# Get latest definitions and skip any failure because of deprecation
sudo apt-get -o Acquire::Check-Valid-Until=false update -yq
- |
sudo apt-get install nri-elasticsearch -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-elasticsearch-fips..."
sudo apt-get install nri-elasticsearch-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-elasticsearch..."
sudo apt-get install nri-elasticsearch -y
fi
- |
if [ -f /etc/newrelic-infra/integrations.d/elasticsearch-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/elasticsearch-config.yml;
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/elasticsearch/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,13 @@ install:
- |
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-elasticsearch -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-elasticsearch-fips..."
sudo yum install nri-elasticsearch-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-elasticsearch..."
sudo yum install nri-elasticsearch -y
fi
- |
if [ -f /etc/newrelic-infra/integrations.d/elasticsearch-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/elasticsearch-config.yml;
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/elasticsearch/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ install:
- |
sudo zypper -n update
- |
sudo zypper -n install nri-elasticsearch
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-elasticsearch-fips..."
sudo zypper -n install nri-elasticsearch-fips
else
echo "FIPS mode not enabled. Installing newrelic-elasticsearch..."
sudo zypper -n install nri-elasticsearch
fi
- |
if [ -f /etc/newrelic-infra/integrations.d/elasticsearch-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/elasticsearch-config.yml;
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/haproxy/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ install:
# Get latest definitions and skip any failure because of deprecation
sudo apt-get -o Acquire::Check-Valid-Until=false update -yq
- |
sudo apt-get install nri-haproxy -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-haproxy-fips..."
sudo apt-get install nri-haproxy-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-haproxy..."
sudo apt-get install nri-haproxy -y
fi
- |
if [ -f /etc/newrelic-infra/integrations.d/haproxy-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/haproxy-config.yml;
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/haproxy/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ install:
- |
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-haproxy -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-haproxy-fips..."
sudo yum install nri-haproxy-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-haproxy..."
sudo yum install nri-haproxy -y
fi
- |
if [ -f /etc/newrelic-infra/integrations.d/haproxy-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/haproxy-config.yml;
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/memcached/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ install:
cmds:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
sudo apt-get install nri-memcached -y > /dev/null
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-memcached-fips..."
sudo apt-get install nri-memcached-fips -y > /dev/null
else
echo "FIPS mode not enabled. Installing newrelic-memcached..."
sudo apt-get install nri-memcached -y > /dev/null
fi
NEW_RELIC_ASSUME_YES="{{.NEW_RELIC_ASSUME_YES}}"

if [[ "$NEW_RELIC_ASSUME_YES" != "true" ]] ; then
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/memcached/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ install:
cmds:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
sudo yum install nri-memcached -y > /dev/null
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-memcached-fips..."
sudo yum install nri-memcached-fips -y > /dev/null
else
echo "FIPS mode not enabled. Installing newrelic-memcached..."
sudo yum install nri-memcached -y > /dev/null
fi
NEW_RELIC_ASSUME_YES="{{.NEW_RELIC_ASSUME_YES}}"

if [[ "$NEW_RELIC_ASSUME_YES" != "true" ]] ; then
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/mongodb/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@ install:
cmds:
- |
mkdir -p "/etc/newrelic-infra/integrations.d"
apt-get install nri-mongodb3 -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-mongodb3-fips..."
apt-get install nri-mongodb3-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-mongodb3..."
apt-get install nri-mongodb3 -y
fi

# Mongodb config file for New Relic Agent
tee /etc/newrelic-infra/integrations.d/mongodb3-config.yml > /dev/null <<-EOT
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/mongodb/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,13 @@ install:
cmds:
- |
mkdir -p "/etc/newrelic-infra/integrations.d"
yum install nri-mongodb3 -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-mongodb3-fips..."
yum install nri-mongodb3-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-mongodb3..."
yum install nri-mongodb3 -y
fi

# Mongodb config file for New Relic Agent
tee /etc/newrelic-infra/integrations.d/mongodb3-config.yml > /dev/null <<-EOT
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/mysql/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,13 @@ install:
# Install the integration
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
# Get latest definitions and skip any failure because of deprecation
sudo apt-get install nri-mysql -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-mysql-fips..."
sudo apt-get install nri-mysql-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-mysql..."
sudo apt-get install nri-mysql -y
fi
if [ -f /etc/newrelic-infra/integrations.d/mysql-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/mysql-config.yml;
fi
Expand Down
32 changes: 28 additions & 4 deletions recipes/newrelic/infrastructure/ohi/mysql/rds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,37 @@ install:
echo "INFO: Attempting to install nri-mysql package..."
# Attempt package installation using common Linux package managers
if command -v apt-get > /dev/null; then
sudo apt-get update -yq && sudo apt-get install nri-mysql -yq
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing nri-mysql-fips..."
sudo apt-get update -yq && sudo apt-get install nri-mysql-fips -yq
else
echo "FIPS mode not enabled. Installing nri-mysql..."
sudo apt-get update -yq && sudo apt-get install nri-mysql -yq
fi
elif command -v yum > /dev/null; then
sudo yum install nri-mysql -yq
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing nri-mysql-fips..."
sudo yum install nri-mysql-fips -yq
else
echo "FIPS mode not enabled. Installing nri-mysql..."
sudo yum install nri-mysql -yq
fi
elif command -v dnf > /dev/null; then
sudo dnf install nri-mysql -yq
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing nri-mysql-fips..."
sudo dnf install nri-mysql-fips -yq
else
echo "FIPS mode not enabled. Installing nri-mysql..."
sudo dnf install nri-mysql -yq
fi
elif command -v zypper > /dev/null; then
sudo zypper --non-interactive install nri-mysql
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing nri-mysql-fips..."
sudo zypper --non-interactive install nri-mysql-fips
else
echo "FIPS mode not enabled. Installing nri-mysql..."
sudo zypper --non-interactive install nri-mysql
fi
else
echo "ERROR: Unsupported package manager. Cannot install nri-mysql automatically." >&2
echo "Please install nri-mysql manually (e.g., from https://github.com/newrelic/nri-mysql/releases) and re-run." >&2
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/mysql/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,13 @@ install:
# Install the integration
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
sudo yum install nri-mysql -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-mysql-fips..."
sudo yum install nri-mysql-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-mysql..."
sudo yum install nri-mysql -y
fi
if [ -f /etc/newrelic-infra/integrations.d/mysql-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/mysql-config.yml;
fi
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/mysql/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,13 @@ install:
# Install the integration
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
sudo zypper -n ref -r newrelic-infra
sudo zypper -n install nri-mysql
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-mysql-fips..."
sudo zypper -n install nri-mysql-fips
else
echo "FIPS mode not enabled. Installing newrelic-mysql..."
sudo zypper -n install nri-mysql
fi
if [ -f /etc/newrelic-infra/integrations.d/mysql-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/mysql-config.yml;
fi
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/nagios/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,13 @@ install:
# Get latest definitions and skip any failure because of deprecation
sudo apt-get -o Acquire::Check-Valid-Until=false update -yq
- |
sudo apt-get install nri-nagios -y -qq
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-nagios-fips..."
sudo apt-get install nri-nagios-fips -y -qq
else
echo "FIPS mode not enabled. Installing newrelic-nagios..."
sudo apt-get install nri-nagios -y -qq
fi
- |
if [ -f /etc/newrelic-infra/integrations.d/nagios-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/nagios-config.yml;
Expand Down
8 changes: 7 additions & 1 deletion recipes/newrelic/infrastructure/ohi/nagios/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,13 @@ install:
- |
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-nagios -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-nagios-fips..."
sudo yum install nri-nagios-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-nagios..."
sudo yum install nri-nagios -y
fi
- |
if [ -f /etc/newrelic-infra/integrations.d/nagios-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/nagios-config.yml;
Expand Down
16 changes: 14 additions & 2 deletions recipes/newrelic/infrastructure/ohi/nginx/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,23 @@ install:
if [[ -n "$isYumInstalled" ]]; then
# rhel
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
sudo yum install nri-nginx -y -q
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-nginx-fips..."
sudo yum install nri-nginx-fips -y -q
else
echo "FIPS mode not enabled. Installing newrelic-nginx..."
sudo yum install nri-nginx -y -q
fi
else
# debian
sudo apt-get -o Acquire::Check-Valid-Until=false update -yq
sudo apt-get install nri-nginx -y
if [ "${NEW_RELIC_FIPS_ENABLED:-false}" = "true" ]; then
echo "FIPS mode enabled. Installing newrelic-nginx-fips..."
sudo apt-get install nri-nginx-fips -y
else
echo "FIPS mode not enabled. Installing newrelic-nginx..."
sudo apt-get install nri-nginx -y
fi
fi

if [ -f /etc/newrelic-infra/integrations.d/nginx-config.yml ]; then
Expand Down
Loading
Loading