diff --git a/Dockerfile.pytest b/Dockerfile.pytest index 5a853098f..d6c9e2fd2 100644 --- a/Dockerfile.pytest +++ b/Dockerfile.pytest @@ -10,7 +10,10 @@ RUN echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influ RUN echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | tee /etc/apt/sources.list.d/influxdata.list -# Install InfluxDB clients to use in tests. +# Install depedencies for clients and tests. +# - InfluxData clients to use in tests. +# - apt-utils for verification tools +# - perl for shasum (default on MacOS) RUN apt-get update && apt-get upgrade -y && apt-get install -y \ apt-utils \ curl \ @@ -23,6 +26,7 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y \ maven \ nodejs \ npm \ + perl \ python3 \ python3-pip \ python3-venv \ diff --git a/compose.yaml b/compose.yaml index eff36180b..be18df40b 100644 --- a/compose.yaml +++ b/compose.yaml @@ -377,7 +377,6 @@ services: build: context: . dockerfile: .ci/Dockerfile.remark - command: ["remark", "${CONTENT_PATH}"] profiles: - lint volumes: diff --git a/content/influxdb/v2/install/_index.md b/content/influxdb/v2/install/_index.md index 6c31336aa..5cda48269 100644 --- a/content/influxdb/v2/install/_index.md +++ b/content/influxdb/v2/install/_index.md @@ -18,8 +18,178 @@ process and visualize metrics and events. - [Start InfluxDB](#start-influxdb) - [Download, install, and configure the `influx` CLI](#download-install-and-configure-influx-cli) -1. **Download and install InfluxDB v2**. - +## Download and install InfluxDB v2 + +{{< req text="Recommended:" color="magenta" >}}: Before you open and install packages and downloaded files, use SHA +checksum verification and GPG signature verification to ensure the files are +intact and authentic. +SHA checksum and GPG signature verification are complementary checks. + +The InfluxDB installation instructions include steps to verify downloaded packages and binaries. + +### Choose the InfluxData key-pair for your OS version + +_Before running the installation steps, substitute the key-pair compatible +with your OS version:_ + +For newer releases (for example, Ubuntu 20.04 LTS and newer, Debian Buster +and newer) that support subkey verification: + +- Private key file: [`influxdata-archive.key`](https://repos.influxdata.com/influxdata-archive.key) +- Public key: `943666881a1b8d9b849b74caebf02d3465d6beb716510d86a39f6c8e8dac7515` + +For older versions (for example, CentOS/RHEL 7, Ubuntu 18.04 LTS, or Debian +Stretch) that don't support subkeys for verification: + +- Private key file: [`influxdata-archive_compat.key`](https://repos.influxdata.com/influxdata-archive_compat.key) +- Public key: `393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c` + +After you have selected the key-pair, then you're ready to run the InfluxDB +[installation] instructions. + +For more information about SHA and GPG verifications, see the following: + +{{< expand-wrapper >}} +{{% expand "Verify download integrity using SHA-256" %}} + +For each released binary, InfluxData publishes the SHA checksum that +you can use to verify that the downloaded file is intact and hasn't been corrupted. + +To use the SHA checksum to verify the downloaded file, do the following: + +1. In the [downloads page](https://www.influxdata.com/downloads), + select the **Version** and **Platform** for your download, and then copy + the **SHA256:** checksum value. + +2. Compute the SHA checksum of the downloaded file and compare it to the + published checksum--for example, enter the following command in your terminal. + + + + + +{{% code-placeholders "9cb54d3940c37a8c2a908458543e629412505cc71db55094147fd39088b99c6c" %}} + +```bash +# Use 2 spaces to separate the checksum from the filename +echo "9cb54d3940c37a8c2a908458543e629412505cc71db55094147fd39088b99c6c influxdb2-{{< latest-patch >}}_linux_amd64.tar.gz" \ +| sha256sum --check - +``` + +{{% /code-placeholders %}} + +Replace the following: + +- {{% code-placeholder-key %}}`9cb54d3940c37a8c2a908458543e629412505cc71db55094147fd39088b99c6c`{{% /code-placeholder-key %}}: + the **SHA256:** checksum value that you copied from the downloads page + +If the checksums match, the output is the following; otherwise, an error message. + +``` +influxdb2-{{< latest-patch >}}_linux_amd64.tar.gz: OK +``` + +{{% /expand %}} +{{% expand "Verify file integrity and authenticity using GPG" %}} + +InfluxData uses [GPG (GnuPG)](https://www.gnupg.org/software/) to sign released software and provides +public key and encrypted private key (`.key` file) pairs that you can use to +verify the integrity of packages and binaries from the InfluxData repository. + +Most operating systems include `gpg` by default. +_If `gpg` isn't available on your system, see +[GnuPG download](https://gnupg.org/download/) and install instructions._ + +The following steps guide you through using GPG to verify InfluxDB +binary releases: + +1. [Choose the InfluxData key-pair for your OS version](#choose-the-influxdata-key-pair-for-your-system). +2. Download and import the InfluxData public key. + + `gpg --import` outputs to stderr. + The following example shows how to import the key, redirect the output to stdout, + and then check for the expected key name: + + + +{{% code-placeholders "https://repos.influxdata.com/influxdata-archive.key" %}} + +```sh +curl --silent --location \ + https://repos.influxdata.com/influxdata-archive.key \ + | gpg --import - 2>&1 \ + | grep 'InfluxData Package Signing Key ' +``` + +{{% /code-placeholders %}} + +Replace the following: + +- {{% code-placeholder-key %}}`https://repos.influxdata.com/influxdata-archive.key`{{% /code-placeholder-key %}}: + the InfluxData private key file compatible with your OS version + +If successful, the output is the following: + + + +``` +gpg: key 7C3D57159FC2F927: public key "InfluxData Package Signing Key " imported +``` + +3. Download the signature file for the release by appending `.asc` to the download URL, + and then use `gpg` to verify the download signature--for example, enter the + following in your terminal: + + + + ```sh + curl --silent --location \ + https://download.influxdata.com/influxdb/releases/influxdb2-{{< latest-patch >}}_darwin_amd64.tar.gz.asc \ + | gpg --verify - ~/Downloads/influxdb2-{{< latest-patch >}}_darwin_amd64.tar.gz \ + 2>&1 | grep 'InfluxData Package Signing Key ' + ``` + + - `curl --silent --location`: Follows any server redirects and fetches the + signature file silently (without progress meter). + - `gpg --verify -`: Reads the signature from stdin and uses it to verify the + the downloaded `influxdbv2` binary. + + If successful, the output is the following: + + + + ``` + gpg: Good signature from "InfluxData Package Signing Key " [unknown] + ``` + +_For security, InfluxData periodically rotates keys and publishes the new key pairs._ + +{{% /expand %}} +{{< /expand-wrapper >}} {{< tabs-wrapper >}} {{% tabs %}} @@ -58,18 +228,11 @@ _You'll install the `influx CLI` in a [later step](#download-and-install-the-inf ### Install using Homebrew - ```sh brew update brew install influxdb ``` -{{% note %}} -Homebrew also installs `influxdb-cli` as a dependency. -For information about using the `influx` CLI, see the -[`influx` CLI reference documentation](/influxdb/v2/reference/cli/influx/). -{{% /note %}} - ### Manually download and install for macOS 1. In your browser or your terminal, download the InfluxDB package. @@ -78,28 +241,42 @@ For information about using the `influx` CLI, see the ```sh # Download using cURL - curl -LO https://download.influxdata.com/influxdb/releases/influxdb2-{{< latest-patch >}}_darwin_amd64.tar.gz \ - --output-dir ~/Downloads + curl --location -O \ + "https://download.influxdata.com/influxdb/releases/influxdb2-{{< latest-patch >}}_darwin_amd64.tar.gz" ``` -2. Unpackage the InfluxDB binary. +2. {{< req text="Recommended:" color="magenta" >}}: Verify the integrity of the download--for example, enter the + following command in your terminal: + +{{% code-placeholders "964e1de641a43a0e1743aa5ead243e935a05631ba0bc570fb8bff486542173c1" %}} + +```sh +# Use 2 spaces to separate the checksum from the filename +echo "964e1de641a43a0e1743aa5ead243e935a05631ba0bc570fb8bff486542173c1 influxdb2-{{< latest-patch >}}_darwin_amd64.tar.gz" \ +| shasum --algorithm 256 --quiet --check - +``` + +{{% /code-placeholders %}} + +Replace the following: + +- {{% code-placeholder-key %}}`964e1de641a43a0e1743aa5ead243e935a05631ba0bc570fb8bff486542173c1`{{% /code-placeholder-key %}}: the SHA checksum from the [downloads page](https://www.influxdata.com/downloads/#telegraf) + +3. Unpackage the InfluxDB binary. Do one of the following: - In **Finder**, double-click the downloaded package file. - In your terminal (for example, **Terminal** or **[iTerm2](https://www.iterm2.com/)**), use `tar` to unpackage the file--for example, enter the following command to extract it into the current directory: - - ```sh # Unpackage contents to the current working directory - tar zxvf ~/Downloads/influxdb2-{{< latest-patch >}}_darwin_amd64.tar.gz + tar zxvf ./influxdb2-{{< latest-patch >}}_darwin_amd64.tar.gz ``` -3. Optional: Place the `influxd` binary in your `$PATH`--for example, copy the binary to `/usr/local/bin`: - - +4. Optional: Place the `influxd` binary in your `$PATH`--for example, copy the binary to `/usr/local/bin`: + ```sh # (Optional) Copy the influxd binary to your $PATH sudo cp influxdb2-{{< latest-patch >}}/influxd /usr/local/bin/ @@ -110,7 +287,6 @@ For information about using the `influx` CLI, see the If you choose not to move the `influxd` binary into your `$PATH`, enter the path to the binary to start the server--for example: - ```sh ./influxdb2-{{< latest-patch >}}/influxd ``` @@ -119,63 +295,14 @@ For information about using the `influx` CLI, see the {{% expand "Recommended – Set appropriate directory permissions" %}} To prevent unwanted access to data, set the permissions on the influxdb `data-dir` to not be world readable. -If installing on a server, set a umask of `0027` to properly permission all newly created files--for example, enter the following command in your terminal: +If installing on a server, set a umask of `0027` to properly permission all +newly created files--for example, enter the following command in your terminal: - -```sh +```bash chmod 0750 ~/.influxdbv2 ``` -{{% /expand %}} -{{% expand "Recommended – Verify the authenticity of the downloaded binary" %}} - -For added security, use `gpg` to verify the signature of your download. -(Most operating systems include the `gpg` command by default. -If `gpg` is not available, see the [GnuPG homepage](https://gnupg.org/download/) for installation instructions.) - -1. Download and import InfluxData's public key. - `gpg --import` outputs to stderr. - The following example shows how to import the key, redirect the output to stdout, - and then check for the expected key name: - - - - ```sh - curl -s https://repos.influxdata.com/influxdata-archive_compat.key \ - | gpg --import - 2>&1 \ - | grep 'InfluxData Package Signing Key ' - ``` - - If successful, the output is similar to the following: - - - - ``` - gpg: key D8FF8E1F7DF8B07E: public key "InfluxData Package Signing Key " imported - ``` - -2. Download the signature file for the release by adding `.asc` to the download URL, - and then use `gpg` to verify the download signature--for example: - - ```sh - curl -s https://download.influxdata.com/influxdb/releases/influxdb2-{{< latest-patch >}}_darwin_amd64.tar.gz.asc \ - | gpg --verify - ~/Downloads/influxdb2-{{< latest-patch >}}_darwin_amd64.tar.gz \ - 2>&1 | grep 'InfluxData Package Signing Key ' - ``` - - If successful, the output is the following: - - - - ``` - gpg: Good signature from "InfluxData Package Signing Key " [unknown] - ``` - {{% /expand %}} {{< /expand-wrapper >}} @@ -210,48 +337,68 @@ _You'll install the `influx CLI` in a [later step](#download-and-install-the-inf ### Install InfluxDB as a service with systemd -1. Download and install the appropriate `.deb` or `.rpm` file using a URL from the - [InfluxData downloads page](https://www.influxdata.com/downloads/) - with the following commands: +1. [Choose the InfluxData key-pair for your OS version](#choose-the-influxdata-key-pair-for-your-os-version). - ```sh - # Ubuntu/Debian AMD64 - curl -LO https://download.influxdata.com/influxdb/releases/influxdb2_{{< latest-patch >}}-1_amd64.deb - sudo dpkg -i influxdb2_{{< latest-patch >}}-1_amd64.deb +2. Run the command for your OS version to install the InfluxData key, + add the InfluxData repository, and install `influxdb`. + + _Before running the command, replace the checksum and key filename with the + key-pair from the preceding step._ + + ```bash + # Ubuntu and Debian + # Add the InfluxData key to verify downloads and add the repository + curl --silent --location -O \ + https://repos.influxdata.com/influxdata-archive.key + echo "943666881a1b8d9b849b74caebf02d3465d6beb716510d86a39f6c8e8dac7515 influxdata-archive.key" \ + | sha256sum --check - && cat influxdata-archive.key \ + | gpg --dearmor \ + | tee /etc/apt/trusted.gpg.d/influxdata-archive.gpg > /dev/null \ + && echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main' \ + | tee /etc/apt/sources.list.d/influxdata.list + # Install influxdb + sudo apt-get update && sudo apt-get install influxdb2 ``` - ```sh - # Ubuntu/Debian ARM64 - curl -LO https://download.influxdata.com/influxdb/releases/influxdb2_{{< latest-patch >}}-1_arm64.deb - sudo dpkg -i influxdb2_{{< latest-patch >}}-1_arm64.deb - ``` - - ```sh - # Red Hat/CentOS/Fedora x86-64 (x64, AMD64) - curl -LO https://download.influxdata.com/influxdb/releases/influxdb2-{{< latest-patch >}}-1.x86_64.rpm - sudo yum localinstall influxdb2-{{< latest-patch >}}-1.x86_64.rpm - ``` - - ```sh - # Red Hat/CentOS/Fedora AArch64 (ARMv8-A) - curl -LO https://download.influxdata.com/influxdb/releases/influxdb2-{{< latest-patch >}}-1.aarch64.rpm - sudo yum localinstall influxdb2-{{< latest-patch >}}-1.aarch64.rpm - ``` - -2. Start the InfluxDB service: - + ```bash + # RedHat and CentOS + # Add the InfluxData key to verify downloads + curl --silent --location -O \ + https://repos.influxdata.com/influxdata-archive.key \ + && echo "943666881a1b8d9b849b74caebf02d3465d6beb716510d86a39f6c8e8dac7515 influxdata-archive.key" \ + | sha256sum --check - && cat influxdata-archive.key \ + | gpg --dearmor \ + | tee /etc/pki/rpm-gpg/RPM-GPG-KEY-influxdata > /dev/null - ```sh + # Add the InfluxData repository to the repository list. + cat < + ```bash sudo service influxdb start ``` Installing the InfluxDB package creates a service file at `/lib/systemd/system/influxdb.service` to start InfluxDB as a background service on startup. -3. To verify that the service is running correctly, restart your system and then enter the following command in your terminal: +4. To verify that the service is running correctly, restart your system and then enter the following command in your terminal: - ```sh + + ```bash sudo service influxdb status ``` @@ -277,6 +424,7 @@ You can use systemd to customize [InfluxDB configuration options](/influxdb/v2/r ```sh ARG1="--http-bind-address :8087" ARG2="--storage-wal-fsync-delay=15m" + ``` 2. Edit the `/lib/systemd/system/influxdb.service` file to pass the variables to the `ExecStart` value: @@ -296,39 +444,113 @@ _If necessary, adjust the example file paths and utilities for your system._ InfluxDB v2 (amd64) InfluxDB v2 (arm) + + + + ```sh # Use curl to download the amd64 binary. - curl -LO \ + curl --location -O \ https://download.influxdata.com/influxdb/releases/influxdb2-{{< latest-patch >}}_linux_amd64.tar.gz ``` + + ```sh # Use curl to download the arm64 binary. - curl -LO \ + curl --location -O \ https://download.influxdata.com/influxdb/releases/influxdb2-{{< latest-patch >}}_linux_arm64.tar.gz ``` -2. Extract the downloaded binary--for example, enter the following command +2. [Choose the InfluxData key-pair for your OS version](#choose-the-influxdata-key-pair-for-your-system). + +3. {{< req text="Recommended:" color="magenta" >}}: Verify the authenticity of the downloaded binary--for example, + enter the following command in your terminal. + + _Before running the command for your system, replace + `https://repos.influxdata.com/influxdata-archive.key` with the key URL + from the preceding step._ + + + + ```bash + # amd64 + # Download and import the key + curl --silent --location https://repos.influxdata.com/influxdata-archive.key \ + | gpg --import - 2>&1 \ + | grep 'InfluxData Package Signing Key ' \ + && + # Download and verify the binary's signature file + curl --silent --location "https://download.influxdata.com/influxdb/releases/influxdb2-{{< latest-patch >}}_linux_amd64.tar.gz.asc" \ + | gpg --verify - influxdb2-{{< latest-patch >}}_linux_amd64.tar.gz \ + 2>&1 | grep 'InfluxData Package Signing Key ' + ``` + + + ```bash + # arm64 + # Download and import the key + curl --silent --location https://repos.influxdata.com/influxdata-archive.key \ + | gpg --import - 2>&1 \ + | grep 'InfluxData Package Signing Key ' \ + && + # Download and verify the binary's signature file + curl --silent --location "https://download.influxdata.com/influxdb/releases/influxdb2-{{< latest-patch >}}_linux_arm64.tar.gz.asc" \ + | gpg --verify - influxdb2-{{< latest-patch >}}_linux_arm64.tar.gz \ + 2>&1 | grep 'InfluxData Package Signing Key ' + ``` + + If successful, the output is similar to the following: + + + + ``` + gpg: Good signature from "InfluxData Package Signing Key " [unknown] + ``` + +4. Extract the downloaded binary--for example, enter the following command for your system: - ```sh + ```bash # amd64 tar xvzf ./influxdb2-{{< latest-patch >}}_linux_amd64.tar.gz ``` - ```sh + ```bash # arm64 tar xvzf ./influxdb2-{{< latest-patch >}}_linux_arm64.tar.gz ``` -3. Optional: Place the extracted `influxd` executable binary in your system `$PATH`. +5. Optional: Place the extracted `influxd` executable binary in your system `$PATH`. - ```sh + ```bash # amd64 sudo cp ./influxdb2-{{< latest-patch >}}/usr/bin/influxd /usr/local/bin/ ``` - ```sh + ```bash # arm64 sudo cp ./influxdb2-{{< latest-patch >}}/usr/bin/influxd /usr/local/bin/ ``` @@ -338,7 +560,7 @@ _If necessary, adjust the example file paths and utilities for your system._ - ```sh + ```bash ./influxdb2-{{< latest-patch >}}/usr/bin/influxd ``` @@ -359,57 +581,6 @@ command in your terminal: chmod 0750 ~/.influxdbv2 ``` -{{% /expand %}} -{{% expand "Recommended – Verify the authenticity of downloaded binary" %}} - -For added security, use `gpg` to verify the signature of your download. -(Most operating systems include the `gpg` command by default. -To install `gpg`, see the [GnuPG installation instructions](https://gnupg.org/download/)). - -1. Download and import InfluxData's public key. - `gpg --import` outputs to stderr. - The following example shows how to import the key, redirect the output to stdout, - and then check for the expected key name: - - - - - - ```sh - curl -s https://repos.influxdata.com/influxdata-archive_compat.key \ - | gpg --import - 2>&1 \ - | grep 'InfluxData Package Signing Key ' - ``` - - If successful, the output is similar to the following: - - - - ``` - gpg: key D8FF8E1F7DF8B07E: public key "InfluxData Package Signing Key " imported - ``` - -2. Download the signature file for the release by adding `.asc` to the download - URL, and then use `gpg` to verify the download signature--for example: - - ```sh - curl -sL https://download.influxdata.com/influxdb/releases/influxdb2-{{< latest-patch >}}_linux_amd64.tar.gz.asc \ - | gpg --verify - influxdb2-{{< latest-patch >}}_linux_amd64.tar.gz \ - 2>&1 | grep 'InfluxData Package Signing Key ' - ``` - - If successful, the output is the following: - - - - ``` - gpg: Good signature from "InfluxData Package Signing Key " [unknown] - ``` - {{% /expand %}} {{< /expand-wrapper >}} @@ -513,7 +684,7 @@ container._ -```sh +```bash docker run \ --name influxdb2 \ --publish 8086:8086 \ @@ -584,7 +755,7 @@ command to interact with the `influx` and `influxd` CLIs inside the container. -```sh +```bash docker exec -it ` ``` @@ -592,14 +763,14 @@ docker exec -it ` -```sh +```bash # List CLI configurations docker exec -it influxdb2 influx config ls ``` -```sh +```bash # View the server configuration docker exec -it influxdb2 influx server-config # Inspect server details @@ -630,14 +801,14 @@ InfluxData also makes [Helm charts](https://github.com/influxdata/helm-charts) a - ```sh + ```bash # with minikube minikube start ``` - ```sh + ```bash # with kind kind create cluster ``` @@ -646,7 +817,7 @@ InfluxData also makes [Helm charts](https://github.com/influxdata/helm-charts) a - ```sh + ```bash kubectl apply -f https://raw.githubusercontent.com/influxdata/docs-v2/master/static/downloads/influxdb-k8-minikube.yaml ``` @@ -659,7 +830,7 @@ InfluxData also makes [Helm charts](https://github.com/influxdata/helm-charts) a - ```sh + ```bash kubectl get pods -n influxdb ``` @@ -667,7 +838,7 @@ InfluxData also makes [Helm charts](https://github.com/influxdata/helm-charts) a - ```sh + ```bash kubectl describe service -n influxdb influxdb ``` @@ -677,7 +848,7 @@ InfluxData also makes [Helm charts](https://github.com/influxdata/helm-charts) a - ```sh + ```bash kubectl port-forward -n influxdb service/influxdb 8086:8086 ``` @@ -692,7 +863,7 @@ To run InfluxDB on Raspberry Pi, you need: - a Raspberry Pi 4+ or 400 - a 64-bit operating system. - _Recommended_ : a [64-bit version of Ubuntu](https://ubuntu.com/download/raspberry-pi) + {{< req text="Recommended:" color="magenta" >}}: a [64-bit version of Ubuntu](https://ubuntu.com/download/raspberry-pi) of Ubuntu Desktop or Ubuntu Server compatible with 64-bit Raspberry Pi. ### Install Linux binaries @@ -739,7 +910,7 @@ To start InfluxDB, run the `influxd` daemon: -```sh +```bash influxd ``` @@ -777,9 +948,7 @@ We are in the process of updating the build process to ensure released binaries After running `influxd`, you might see an error in the log output like the following: - - -```sh +```text too many open files ``` @@ -798,7 +967,7 @@ If the binary was manually downloaded and added to the system `$PATH`, start the -```sh +```bash influxd ``` @@ -835,7 +1004,8 @@ the following message: To use the Docker CLI to start an existing container, enter the following command: -```sh + +```bash docker start influxdb2 ``` @@ -865,7 +1035,9 @@ To start InfluxDB using Kubernetes, follow instructions to [install InfluxDB in {{% expand "Configure the port or address" %}} By default, the InfluxDB UI and HTTP API use port `8086`. -To specify a different port or address, override the [`http-bind-address` option](/influxdb/v2/reference/config-options/#http-bind-address) when starting `influxd`--for example: +To specify a different port or address, override the +[`http-bind-address` option](/influxdb/v2/reference/config-options/#http-bind-address) +when starting `influxd`--for example: {{< code-tabs-wrapper >}} {{% code-tabs %}} @@ -876,7 +1048,7 @@ To specify a different port or address, override the [`http-bind-address` option -```sh +```bash influxd --http-bind-address ``` @@ -911,7 +1083,7 @@ To opt-out of sending telemetry data back to InfluxData, specify the -```sh +```bash influxd --reporting-disabled ``` @@ -932,7 +1104,7 @@ influxd --reporting-disabled For information about InfluxDB v2 default settings and how to override them, see [InfluxDB configuration options](/influxdb/v2/reference/config-options/). -3. {{< req text="Recommended:" color="magenta" >}} **Download, install, and configure the `influx` CLI**. +1. {{< req text="Recommended:" color="magenta" >}} **Download, install, and configure the `influx` CLI**. We recommend installing the `influx` CLI, which provides a simple way to interact with InfluxDB from a diff --git a/content/telegraf/v1/install.md b/content/telegraf/v1/install.md index 933bcd8fe..147d44126 100644 --- a/content/telegraf/v1/install.md +++ b/content/telegraf/v1/install.md @@ -42,7 +42,7 @@ aren't synchronized with NTP, the timestamps on the data might be inaccurate. -_**Recommended**_: Before you open and install packages and downloaded files, use SHA +{{< req text="Recommended:" color="magenta" >}}: Before you open and install packages and downloaded files, use SHA checksum verification and GPG signature verification to ensure the files are intact and authentic. @@ -64,12 +64,10 @@ To use the SHA checksum to verify the downloaded file, do the following: select the **Version** and **Platform** for your download, and then copy the SHA256 checksum for the file. -3. Compute the SHA checksum of the downloaded file and compare it to the +2. Compute the SHA checksum of the downloaded file and compare it to the checksum you copied in the preceding step--for example, enter the following command in your terminal. - _Note: Use two spaces to separate the checksum from the filename._ - diff --git a/lefthook.yml b/lefthook.yml index b94242b37..bc0a0b143 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -9,6 +9,11 @@ pre-push: pre-commit: parallel: true commands: + lint-markdown: + tags: lint + glob: "content/**/*.md" + run: | + docker compose run --rm --name remark-lint remark-lint '{staged_files}' cloud-lint: tags: lint,v2 glob: "content/influxdb/cloud/**/*.md"