Install terraform on ubuntu

Last updated:

Install terraform on Ubuntu server

  1. Add the HashiCorp GPG key.

curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
  1. Add the official HashiCorp Linux repository.

sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
  1. Add the official HashiCorp Linux repository.

sudo apt-get update && sudo apt-get install terraform

export HTTP_PROXY=http://172.21.21.5:3128

export HTTPS_PROXY=https://172.21.21.5:3128

Terraform Azure Examples

VM Config

Extend LVs

  1. Check physical volumes.

pvs
  1. Extend partition to fill available space. Use growpart.

growpart /dev/sda 3
  1. Resize physical volume. Use pvresize

pvresize /dev/sda3
  1. List logical volumes.

lvs
  1. Extend logical volumes.

lvextend ubuntu-vg/homelv -L 3GB -r

  

references: