Linux DevOps Automate Everything

Terraform in WSL

Unfortunatly, in my work, I have to use Windows It started as Windows 7 and now I’m using a Windows 10 (not fully updated).

This is the way I found to install Terraform quickly in WSL (Ubuntu).

cd /tmp
wget https://releases.hashicorp.com/terraform/0.11.1/terraform_0.11.1_linux_amd64.zip
sudo mkdir -p /opt/terraform
sudo unzip /tmp/terraform_0.11.1_linux_amd64.zip -d /opt/terraform
export PATH="/opt/terraform:$PATH"

As I’m testing this, I will probably use my Terraform Snap package in a near future and maybe be able to run a full Linux system.

AB

Quick vim tip

Who never opened a file with vim and then realized that you need to write but you forgot root?

###Easy fix: sudo vim ~/.vimrc add the following line

command W :execute ':silent w !sudo tee % > /dev/null' | :edit!

With this we only need to save the file like “:W”

AB

Testing feeds

Due to a request from a friend, I have managed a way to create a RSS feed (or in this case) a Atom feed to allow my blog viewers to follow new posts!

Hope you like it!

AB

Snaps Updated

Just released new versions of Terraform and Packer.

Now:

  • Packer: 1.1.0
  • Terraform: 0.10.8-dev

As always, the method of installation is the same:

  • sudo snap install packer-abacao
  • sudo snap install terraform-abacao

AB

Blog/Life update

Some changes were in place in the last 2 months. I stop my collaboration with my previous company and I have joined Siemens in Portugal. The goal here is to help build and maintain a secure Gitlab instalation for propriety code. I’m also helping the cloud team with hardening ansible scripts for several linux tools.

My SNAPs are a bit outdated but I will try to update them as soon as possible and also improve them.

AB