fix: update RPM/DEB repo URLS (#3901)

We now have stable, codename agnostic repo URLs for installing via a DEB or RPM. These URLs prevent the need to update constantly when new versions and/or releases occur. It also ensures that as a new distros are released we do not need to add them.

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
pull/3970/head^2
Joshua Powers 2022-04-22 09:32:35 -06:00 committed by GitHub
parent 8a016af46d
commit b84c11fda3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -67,8 +67,7 @@ Install Telegraf from the InfluxData repository with the following commands:
{{% code-tab-content %}}
```bash
wget -qO- https://repos.influxdata.com/influxdb.key | sudo tee /etc/apt/trusted.gpg.d/influxdb.asc >/dev/null
source /etc/os-release
echo "deb https://repos.influxdata.com/${ID} ${VERSION_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
echo "deb https://repos.influxdata.com/debian stable main" | sudo tee /etc/apt/sources.list.d/influxdb.list
sudo apt-get update && sudo apt-get install telegraf
```
{{% /code-tab-content %}}
@ -76,8 +75,7 @@ sudo apt-get update && sudo apt-get install telegraf
{{% code-tab-content %}}
```bash
curl -s https://repos.influxdata.com/influxdb.key | sudo tee /etc/apt/trusted.gpg.d/influxdb.asc >/dev/null
source /etc/os-release
echo "deb https://repos.influxdata.com/${ID} ${VERSION_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
echo "deb https://repos.influxdata.com/debian stable main" | sudo tee /etc/apt/sources.list.d/influxdb.list
sudo apt-get update && sudo apt-get install telegraf
```
{{% /code-tab-content %}}
@ -124,8 +122,8 @@ For instructions on how to manually install the RPM package from a file, please
```bash
cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
[influxdb]
name = InfluxDB Repository - RHEL \$releasever
baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
name = InfluxData Repository - Stable
baseurl = https://repos.influxdata.com/stable/\$basearch/main
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key