DCOS: Azure OpenID

With good documentation it should not be hard

This HOWTO will very likely be out of date soon, since Microsoft updates their Azure portal way too often to make documentation reliable. The official documentation for setting up OpenID in Azure Active Directory was outdated and I could not find a few of the listed options they described on: https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/configure-openid-settings. If this documentation can help one or two people with setting this up it would be worth it, since i spend a couple hours on finding the right endpoints and setup i decided to make this HOWTO. In this HOWTO we are going to set up OpenID for DCOS Enterprise. Currently this is all text, since I only have access to Azure through my employer and I do not want to share any details from their accounts.

[Read More]
dcos  openid  azure 

Awesome tool: rclone

rclone is a storage swiss army knife

A couple days ago I was reading questions on a tech website, in one of the topics someone explained an issue that they needed to copy from an SFTP location files in a cron job. They tried using rsync, however SFTP does not support interactive sessions which rsync sets up. As a solution I mentioned rclone. This is such a great tool that has been in my arsenal for quite a while now and I thought it would be good to give a shoutout to this tool.

[Read More]

Awesome tool: Shellcheck

Use shellcheck in all the things!

While sharing the solution to issues you encountered is great, sometimes tools are worth mentioning even if you did not build them or have issues with them. Most of the IT staff would not be where they are now without good tooling, this post is to add praise to one of those tools. Perhaps I will do this more often, but first lets discuss: Shellcheck.

Since a couple years I have incorporated Shellcheck in my daily bash shell script writing. It has greatly improved my scripts, made them more readable and the result is clean code without any nasty surprises. Shellcheck gives sane feedback to your scripts, provides best practices and reports syntax issues. The result is uniform and clean scripts that are readable. The best feature about Shellcheck is that if you made an error, it will point you to the SC code that can be looked up on the wiki of the shellcheck repo: https://github.com/koalaman/shellcheck

[Read More]

Terraform module debug

Lessons learned

The terraform module change I deployed seemed to have valid syntax, the module initialized properly with terraform init. The terraform plan created a valid plan, no errors or syntax issues were raised. When I started to execute the plan with terraform deploy it returned the following error:

Error: Error launching source instance: VPCIdNotSpecified: No default VPC for this user
        status code: 400, request id: xxx

This error pointed me towards a bug report on the Terraform github issues page, this stated:

[Read More]