· 5 min
OpenTofu: Why It Exists, Installation and Migrating from Terraform
Why OpenTofu was forked from Terraform, how to install it on Ubuntu, and how to migrate an existing Terraform project with tofu init, including the lock file warning.
Topic
6 notes
Infrastructure as code with Terraform, OpenTofu, Ansible and Vagrant: provisioning, configuration management and repeatable environments.
· 5 min
Why OpenTofu was forked from Terraform, how to install it on Ubuntu, and how to migrate an existing Terraform project with tofu init, including the lock file warning.
· 29 min
A hands-on Terraform walkthrough on AWS: launch EC2, read the state file, handle drift, use map variables, provisioners, outputs, an S3 backend, workspaces and modules.
· 12 min
Push chrony NTP config with templates, edit sshd_config with lineinfile, restart services only on change with handlers, then organize it all into a role and encrypt secrets with Vault.
· 12 min
Write Ansible playbooks that install Apache and MariaDB, create a database and user, and use variables, facts, when conditions and loops across Ubuntu and CentOS VMs.
· 10 min
Install Ansible in a Python virtual environment, connect Vagrant VMs with passwords and SSH keys, write a first inventory and manage packages with ad-hoc commands.
· 8 min
Create and manage VirtualBox VMs with Vagrant: an Ubuntu 24.04 Vagrantfile, daily commands, synced folders, provisioning, and SSH config and aliases to reach VMs from anywhere.