tools:opentofu

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tools:opentofu [2026/10/09 23:27] – [Referensi] 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> +
-sudo install -m 0755 -d /etc/apt/keyrings +
- +
-curl -fsSL https://get.opentofu.org/opentofu.gpg  +
-| sudo tee /etc/apt/keyrings/opentofu.gpg > /dev/null +
- +
-curl -fsSL https://packages.opentofu.org/opentofu/tofu/gpgkey  +
-| sudo gpg --no-tty --batch --dearmor  +
--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> +# Please inspect the downloaded script
-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:+# Run the installer: 
 +./install-opentofu.sh --install-method deb
  
-<code bash> +# Remove the installer: 
-sudo apt update +rm -f install-opentofu.sh
-sudo apt install -y tofu+
 </code> </code>
  
  • tools/opentofu.1791563266.txt.gz
  • Last modified: 2026/10/09 23:27
  • by ilyasa