Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== OpenTofu ====== ===== Instalasi ===== ==== 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 # Give it execution permissions: chmod +x install-opentofu.sh # Please inspect the downloaded script # Run the installer: ./install-opentofu.sh --install-method deb # Remove the installer: rm -f install-opentofu.sh </code> ===== Verifikasi ===== Periksa versi OpenTofu: <code bash> tofu version </code> ===== Penggunaan Dasar ===== Buat direktori proyek dan file konfigurasi: <code bash> mkdir tofu-project cd tofu-project nano main.tf </code> Isi `main.tf`: <code hcl> output "message" { value = "Hello from OpenTofu" } </code> Jalankan perintah berikut: <code bash> tofu init tofu validate tofu plan tofu apply </code> tools/opentofu.txt Last modified: 2026/10/09 23:31by ilyasa