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!

Terraform 0.9.3

Minor update on Terraform but with interesting things added:

FEATURES:

    New Resource: aws_api_gateway_method_settings [GH-13542]
    New Resource: aws_api_gateway_stage [GH-13540]
    New Resource: aws_iam_openid_connect_provider [GH-13456]
    New Resource: aws_lightsail_static_ip [GH-13175]
    New Resource: aws_lightsail_static_ip_attachment [GH-13207]
    New Resource: aws_ses_domain_identity [GH-13098]
    New Resource: azurerm_managed_disk [GH-12455]
    New Resource: kubernetes_persistent_volume [GH-13277]
    New Resource: kubernetes_persistent_volume_claim [GH-13527]
    New Resource: kubernetes_secret [GH-12960]
    New Data Source: aws_iam_role [GH-13213]

The pace of improving Terraform is quite high in the moment (more-less 11 days between releases).

Also, Packer is finaly at v.1 - Congrats Hashicorp!

Move from Bitbucket to Gogs

Had to made a change and move my very old Bitbucket repositories to my new Gogs Repository.

So, what to do if you want to keep the git history

git remote set-url origin https://new_repository.git
git push

And there you go!