Linux DevOps Automate Everything

Terraform 0.9.4

Minor update on Terraform.

I’ve been on a short holidays and I was able to turn almost all my computers off.

The only thing missing to be away from the IT world was my phone and Netflix.

Minor improvment with Terraform providing some new data sources but most important, the fix of some bugs that were causing some damage like updating ports in Openstack and allow users with no tags in rabbitmq.

You can find the changelog here

New Terraform 0.9.4 here

AB

A way to use Packer

This is a talk given by Daviel Gomes from Talkdesk about Immutable Servers with Packer and Ansible.

Have fun!

Snaps explained in Portuguese

This is a talk given by Tiago Carrondo from Ubuntu about SNAPs (in portuguese).

Have fun!

Packer Snap - My first snap

As I was learning about snaps, I faced a issue that I was having in my current job. I have been using some tools from Hashicorp and Hashicorp don’t use the “latest version” concept.

Bu if you want to keep yourself updated, it’s a problem because they are releasing new features every couple os days and sometimes can be hard to keep up with it, so I created my first snap.

The same package that runs in Ubuntu and Fedora and it seems that will be the standard packaging system for the years to come.

I introduce you “packer-abacao” snap.

It is a job that needs to be polished but remember that is my first snap.

You can install this snap from the Ubuntu Snap Store by using the command.

sudo snap install packer-abacao

With this you will get the latest packer version from the source. v1.1.0

Have fun!

Keeping Terraform Updated (using snap)

Fortunately or unfortunatly, I have several computers to manage and my main ones are macOS (work) and Linux (Ubuntu and Fedora).

In macOS I can use brew update to install and update but in Linux, there isn’t a ways as easy as the mac… until now…

Introducing Terraform Snap package.

First of all, SNAPs are a new a exciting game changer. They are universal Linux packages (forget the war with deb and rpm).

To be able to run snaps you need to install snapd:

In Ubuntu: sudo apt install snapd

In Fedora: sudo dnf install snapd

Now you are able to install Terraform Snap package that will allow you to keep your Terraform updated automatically and magically.

For Terraform Snap

sudo snap install terraform-snap

The problem here (for now), is that the binary is now called “terraform-snap.tf”

To overcome this, I have created a alias like this:

alias terraform='terraform-snap.tf'

There is also a vault snap updated but the packer one is a bit out-of-date.

Have fun!