Docker SSH Pass through links

Docker SSH Pass through links

I have always liked links. When I used to make Cocoa Apps for enterprise customers I liked adding things like Webkit to load cool HTML links and work with custom URLs. There is something about making something pop-up on screen from an otherwise static application that seems fancy to me. Sometimes I need to setup an environment (often linux) that needs a user to interact with a docker container. While docker exec is very similar to ssh, it lacks a URL structure to integrate a website and docker together. In this how-to I will show you how to add ssh:// links to Ubuntu and pass through those connections to docker.

Read more

Automating Gitlab with Python

Automating Gitlab with Python

I enjoy using Gitlab for internal lab environments as it has a robust api and can be automated using things like terraform. One of things I normally use it for is creating represntaive environments with things like hooks enabled. This might looks like an example CI system thats fully built , and having a student have precreated content. However to create content in gitlab out of the box , or run something like git push --mirror you have to disable the branch protection.

Read more

Using Augeas With Facter

Using Augeas With Facter

Augeas is one of those little know but hugely powerful tools in the configuration management world. It allows a unified configuration language to view files in different formats. It does so with different lens’. The lens files are really useful when you use augeas as a library to parse and edit files.

Read more

Confine a Dynamic Fact Using Facter

Confine a Dynamic Fact Using Facter

While in training this week, a coworker was trying to figure out how to confine a fact using a another fact when using facter. This is quite easy using confine in the Facter.add block however when you add dynamic facts in the mix , that block is always executed after you wanted it confined. For instance if you have some yum based fact that dynamically generates many more facts and wanted to confine it only to RedHat, you can simply do the following:

Read more