Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tools:opentofu [2026/10/09 23:27] – created ilyasa | tools:opentofu [2026/10/09 23:31] (current) – [Install OpenTofu] ilyasa | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Instalasi ===== | ===== Instalasi ===== | ||
| - | ==== Dependencies ==== | ||
| - | |||
| - | OpenTofu digunakan untuk mengelola infrastruktur menggunakan Infrastructure as Code (IaC). Instalasi berikut menggunakan repository resmi OpenTofu pada Debian dan Ubuntu. | ||
| - | |||
| - | Install dependencies: | ||
| - | |||
| - | <code bash> | ||
| - | sudo apt update | ||
| - | sudo apt install -y ca-certificates curl gnupg | ||
| - | </ | ||
| ==== Install OpenTofu ==== | ==== Install OpenTofu ==== | ||
| + | Installing using the installer | ||
| + | * https:// | ||
| + | You can use the OpenTofu installer script to run the installation. | ||
| + | < | ||
| + | # Download the installer script: | ||
| + | curl --proto ' | ||
| + | # Alternatively: | ||
| - | Tambahkan GPG key resmi: | + | # Give it execution permissions: |
| + | chmod +x install-opentofu.sh | ||
| - | <code bash> | + | # Please inspect the downloaded script |
| - | sudo install -m 0755 -d / | + | |
| - | curl -fsSL https://get.opentofu.org/opentofu.gpg | + | # Run the installer: |
| - | | sudo tee / | + | ./install-opentofu.sh --install-method deb |
| - | curl -fsSL https:// | + | # Remove the installer: |
| - | | sudo gpg --no-tty --batch --dearmor | + | rm -f install-opentofu.sh |
| - | -o / | + | |
| - | + | ||
| - | sudo chmod a+r / | + | |
| - | / | + | |
| - | + | ||
| - | Tambahkan repository: | + | |
| - | + | ||
| - | <code bash> | + | |
| - | echo \ | + | |
| - | "deb [signed-by=/ | + | |
| - | | sudo tee / | + | |
| - | </ | + | |
| - | + | ||
| - | Install OpenTofu: | + | |
| - | + | ||
| - | <code bash> | + | |
| - | sudo apt update | + | |
| - | sudo apt install -y tofu | + | |
| </ | </ | ||
| Line 81: | Line 60: | ||
| </ | </ | ||
| - | ===== Referensi ===== | ||
| - | |||
| - | * [[https:// | ||
| - | * [[https:// | ||