tools:opentofu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tools:opentofu [2026/10/09 23:27] – created ilyasatools: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 
-</code> 
  
 ==== Install OpenTofu ==== ==== Install OpenTofu ====
 +Installing using the installer
 +  * https://opentofu.org/docs/intro/install/ 
 +You can use the OpenTofu installer script to run the installation.
 +<code>
 +# Download the installer script:
 +curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opentofu.sh -o install-opentofu.sh
 +# Alternatively: wget --secure-protocol=TLSv1_2 --https-only https://get.opentofu.org/install-opentofu.sh -O install-opentofu.sh
  
-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 /etc/apt/keyrings+
  
-curl -fsSL https://get.opentofu.org/opentofu.gpg  +# Run the installer: 
-| sudo tee /etc/apt/keyrings/opentofu.gpg > /dev/null+./install-opentofu.sh --install-method deb
  
-curl -fsSL https://packages.opentofu.org/opentofu/tofu/gpgkey  +# Remove the installer: 
-| sudo gpg --no-tty --batch --dearmor  +rm -f install-opentofu.sh
--o /etc/apt/keyrings/opentofu-repo.gpg +
- +
-sudo chmod a+r /etc/apt/keyrings/opentofu.gpg  +
-/etc/apt/keyrings/opentofu-repo.gpg </code> +
- +
-Tambahkan repository: +
- +
-<code bash> +
-echo \ +
-  "deb [signed-by=/etc/apt/keyrings/opentofu.gpg,/etc/apt/keyrings/opentofu-repo.gpg] https://packages.opentofu.org/opentofu/tofu/any/ any main" \ +
-  | sudo tee /etc/apt/sources.list.d/opentofu.list +
-</code> +
- +
-Install OpenTofu: +
- +
-<code bash> +
-sudo apt update +
-sudo apt install -y tofu+
 </code> </code>
  
Line 81: Line 60:
 </code> </code>
  
-===== Referensi ===== 
- 
-* [[https://opentofu.org/docs/intro/install/deb/|Dokumentasi resmi OpenTofu - Debian/Ubuntu]] 
-* [[https://opentofu.org/docs/language/|OpenTofu Configuration Language]] 
  
  • tools/opentofu.1791563257.txt.gz
  • Last modified: 2026/10/09 23:27
  • by ilyasa