Skip to content

Commit

Permalink
Updated infrastructure-agent Amazon Linux 2 repository location
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenruizdegauna committed Jun 16, 2021
1 parent 5f75232 commit 922d5f6
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ To install the infrastructure agent on instances launched with AWS Elastic Beans
commands:
# Create the agent’s yum repository
"01-agent-repository":
command: sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo
command: sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/amazonlinux/2/x86_64/newrelic-infra.repo
#
# Update your yum cache
"02-update-yum-cache":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,13 @@ To install the infrastructure monitoring agent in Linux, follow these instructio
**Amazon Linux 2 (x86)**

```
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/amazonlinux/2/x86_64/newrelic-infra.repo
```

**Amazon Linux 2 (arm64)**

```
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/aarch64/newrelic-infra.repo
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/amazonlinux/2/aarch64/newrelic-infra.repo
```
</Collapser>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Here are instructions for changing EC2 launch configuration (taken from [Amazon

<Collapser
id="os-2"
title="CentOS 7, RHEL 7, Amazon Linux 2"
title="CentOS 7, RHEL 7"
>
Replace the highlighted fields with relevant values:

Expand Down Expand Up @@ -171,6 +171,64 @@ Here are instructions for changing EC2 launch configuration (taken from [Amazon
--MIMEBOUNDARY--
```
</Collapser>

<Collapser
id="os-2"
title="Amazon Linux 2"
>
Replace the highlighted fields with relevant values:

```
Content-Type: multipart/mixed; boundary="MIMEBOUNDARY"
MIME-Version: 1.0
--MIMEBOUNDARY
Content-Disposition: attachment; filename="init.cfg"
Content-Transfer-Encoding: 7bit
Content-Type: text/cloud-config
Mime-Version: 1.0
yum_repos:
newrelic-infra:
baseurl: https://download.newrelic.com/infrastructure_agent/linux/yum/amazonlinux/2/x86_64
gpgkey: https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg
gpgcheck: 1
repo_gpgcheck: 1
enabled: true
name: New Relic Infrastructure
write_files:
- content: |
---
# New Relic config file
license_key: <a href="/docs/accounts/install-new-relic/account-setup/license-key"><var>YOUR_LICENSE_KEY</var></a>
path: /etc/newrelic-infra.yml
packages:
- newrelic-infra
- nri-*
runcmd:
- [ yum, install, newrelic-infra, -y ]
- [ systemctl, daemon-reload ]
- [ systemctl, enable, newrelic-infra.service ]
- [ systemctl, start, --no-block, newrelic-infra.service ]
--MIMEBOUNDARY
Content-Transfer-Encoding: 7bit
Content-Type: text/x-shellscript
Mime-Version: 1.0
#!/bin/bash
# ECS config
{
echo "ECS_CLUSTER=<var>YOUR_ECS_CLUSTER_NAME</var>"
} >> /etc/ecs/ecs.config
start ecs
echo "Done"
--MIMEBOUNDARY--
```
</Collapser>
</CollapserGroup>
7. Choose **Skip to review**.
8. Choose **Create launch configuration**.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ InfrastructureモニタリングエージェントをLinuxでインストール
**Amazon Linux 2**

```
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/amazonlinux/2/x86_64/newrelic-infra.repo
```
</Collapser>

Expand Down

0 comments on commit 922d5f6

Please sign in to comment.