Skip to content

Commit

Permalink
Merge pull request #257 from newrelic/fix/yum-update-recipe
Browse files Browse the repository at this point in the history
Replace yum update with makecache
  • Loading branch information
Julien4218 authored Mar 11, 2021
2 parents e9e6b50 + 7edc9d5 commit 8844e6c
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/ohi/apache/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ install:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
- |
sudo yum update -y
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-apache -y
- |
Expand Down
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/ohi/cassandra/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ install:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
- |
sudo yum update -y
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-cassandra -y
- |
Expand Down
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/ohi/consul/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ install:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
- |
sudo yum update -y
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-consul -y
- |
Expand Down
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/ohi/couchbase/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ install:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
- |
sudo yum update -y
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-couchbase -y
- |
Expand Down
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/ohi/elasticsearch/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ install:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
- |
sudo yum update -y
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-elasticsearch -y
- |
Expand Down
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/ohi/haproxy/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ install:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
- |
sudo yum update -y
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-haproxy -y
- |
Expand Down
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/ohi/memcached/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ install:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
- |
sudo yum update -y
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-memcached -y
- |
Expand Down
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/ohi/mongodb/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ install:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
- |
sudo yum update -y
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-mongodb -y
- |
Expand Down
4 changes: 2 additions & 2 deletions recipes/newrelic/infrastructure/ohi/nagios/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ install:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
- |
sudo yum update -y -q
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-nagios -y -q
sudo yum install nri-nagios -y
- |
if [ -f /etc/newrelic-infra/integrations.d/nagios-config.yml ]; then
sudo rm /etc/newrelic-infra/integrations.d/nagios-config.yml;
Expand Down
2 changes: 2 additions & 0 deletions recipes/newrelic/infrastructure/ohi/nginx/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ install:
cmds:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
- |
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-nginx -y -q
- |
Expand Down
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/ohi/postgres/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ install:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
- |
sudo yum update -y
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-postgresql -y
- |
Expand Down
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/ohi/rabbitmq/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ install:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
- |
sudo yum update -y
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-rabbitmq -y
- |
Expand Down
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/ohi/redis/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ install:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
- |
sudo yum update -y
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-redis -y
- |
Expand Down
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/ohi/varnish/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ install:
- |
sudo mkdir -p "/etc/newrelic-infra/integrations.d"
- |
sudo yum update -y
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
- |
sudo yum install nri-varnish -y
- |
Expand Down

0 comments on commit 8844e6c

Please sign in to comment.