feat: add freebsd installation (#1260)

Signed-off-by: Yuvraj <evalsocket@gmail.com>
Co-authored-by: Janos <86970079+janosdebugs@users.noreply.github.com>
This commit is contained in:
Yuvraj 2024-02-19 20:17:47 +05:30 committed by GitHub
parent 2d08241b8f
commit ee72400176
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 83 additions and 55 deletions

View File

@ -0,0 +1,30 @@
---
sidebar_position: 1
sidebar_label: FreeBSD
description: |-
Install OpenTofu on FreeBSD.
---
import CodeBlock from '@theme/CodeBlock';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import ApkConvenienceScript from '!!raw-loader!./alpine-convenience.sh'
import ApkManualScript from '!!raw-loader!./alpine-manual.sh'
# Installing OpenTofu on FreeBSD
OpenTofu is available for FreeBSD and can be installed using the [pkg](https://pkgs.org/download/opentofu) and [port](https://cgit.freebsd.org/ports/commit/?id=f49b835b51fd5d92138706c32523c6f361740eac) system or by downloading the package directly.
## Installing using the pkg
```bash
pkg update -f
pkg install opentufu
```
## Installing the port
```bash
portsnap fetch extract
make -C /usr/ports/sysutils/opentofu install clean
```

View File

@ -16,8 +16,7 @@ You can install OpenTofu via a wide range of methods. Please select your operati
type: "link",
href: "/docs/intro/install/alpine",
label: "Alpine Linux (.apk)",
description:
"Install OpenTofu from an .apk package directly.",
description: "Install OpenTofu from an .apk package directly.",
},
{
type: "link",
@ -31,14 +30,7 @@ You can install OpenTofu via a wide range of methods. Please select your operati
href: "/docs/intro/install/rpm",
label: "RHEL and derivatives (.rpm)",
description:
"Install OpenTofu on RHEL, openSUSE, AlmaLinux or any other .rpm-based Linux distribution using your package manager.",
},
{
type: "link",
href: "/docs/intro/install/fedora",
label: "Fedora",
description:
"Install OpenTofu on Fedora using your package manager.",
"Install OpenTofu on RHEL, Fedora, openSUSE, or any other .rpm-based Linux distribution using your package manager.",
},
{
type: "link",
@ -51,15 +43,21 @@ You can install OpenTofu via a wide range of methods. Please select your operati
type: "link",
href: "/docs/intro/install/homebrew",
label: "MacOS or Linux (Homebrew)",
description: "Install OpenTofu on MacOS or Linux using Homebrew.",
},
{
type: "link",
href: "/docs/intro/install/bsd",
label: "FreeBSD",
description:
"Install OpenTofu on MacOS or Linux using Homebrew.",
"Use OpenTofu without installation on FreeBSD.",
},
{
type: "link",
href: "/docs/intro/install/standalone",
label: "Standalone (Linux/MacOS/Windows)",
label: "Standalone (Linux/MacOS/Windows/BSD)",
description:
"Use OpenTofu without installation on Linux, MacOS, or Windows.",
"Use OpenTofu without installation on Linux, MacOS, Windows or FreeBSD.",
},
]}
/>

View File

@ -1,6 +1,6 @@
---
sidebar_position: 99
sidebar_label: Standalone (Linux/MacOS/Windows)
sidebar_label: Standalone (Linux/MacOS/Windows/BSD)
description: |-
Use OpenTofu as a standalone binary without installation.
---
@ -22,7 +22,7 @@ import Admonition from '@theme/Admonition';
## Using the installer script
<Tabs>
<TabItem value="posix" label="Linux/MacOS/Unix (POSIX)">
<TabItem value="posix" label="Linux/MacOS/BSD/Unix (POSIX)">
<CodeBlock language="bash">{LinuxScript}</CodeBlock>
<Admonition type="info">The standalone installer verifies the integrity of the downloaded files. You need to install <a href="https://docs.sigstore.dev/system_config/installation/">cosign</a>, <a href="https://gnupg.org/">GnuPG</a>, or disable the integrity verification by using the <code>--skip-verify</code> option.</Admonition>
</TabItem>
@ -69,7 +69,7 @@ Please download the `tofu_YOURVERSION_SHA256SUMS` file from the release. This fi
After you have verified the checksums, you can verify the integrity of the checksum file itself with [Cosign](https://docs.sigstore.dev/system_config/installation/). Please make sure you have installed Cosign and download the `tofu_YOURVERSION_SHA256SUMS.pem` and `tofu_YOURVERSION_SHA256SUMS.sig` files for your release. You can then run the integrity verification:
<Tabs>
<TabItem value="posix" label="Linux/MacOS/UNIX (POSIX)">
<TabItem value="posix" label="Linux/MacOS/BSD/UNIX (POSIX)">
<CodeBlock language="bash">{VerifyCosignLinux}</CodeBlock>
</TabItem>
<TabItem value="powershell" label="Windows (PowerShell)">