nasm on OpenBSD

Recently I decided to study for the SLAE64 course from Pentester Academy to work on my assembly knowledge, specifically on x86_64. Through the course does focus on Linux I want to apply the knowledge to OpenBSD/amd64 too and thus I installed NASM and looked at what I needed to …




Setting up NetBox on OpenBSD

The following documents the steps needed to setup NetBox on OpenBSD. I am running NetBox on a PC Engines APU which holds up fairly well and I have since migrated my own setup from RackTables to NetBox, primarily because of the API functionality NetBox offers which allows for integration with …




Salt managed TLS files

When managing configuration for various services, you'll (hopefully) end up having to install TLS certificates at some point. Instead of having to come up with the same logic in various modules, roles or formulas I've had an Ansible role for a while that bundled all the logic into a single …




Consul with SMF on Solaris

Whilst setting up consul on SmartOS I noticed the packages distributed through pkgsrc were lagging behind a bit and the upstream "distribution" contains only the consul binary.

Running consul -dev in a tmux window will get boring pretty quickly, so I came up with the following SMF manifest using …




Ansible modules for SmartOS imgadm and vmadm

As mentioned in an earlier post I'd been working on two new Ansible modules; for imgadm(1M) and vmadm(1M). So here I want to demonstrate these new modules which will be part of Ansible 2.3.

imgadm

The imgadm module allow for managing both images and data sources. Let's …




Running Ansible in the SmartOS global zone

None of the machines I currently run SmartOS on are big enough to run SDC/Triton, so I looked at Rundeck for creating zone definitions. and provisioning new zones as jobs. However Rundeck is unable to dynamically add new option fields. This is required for example in order to …




Fun with Ansible variable interpolation

After losing some hair over the question how does Ansible do hiera-style %{} variable interpolation? I figured I'd jot down my findings. If nothing else, it'll serve as a handy cheatsheet for future me.

Background

In Hiera one can do variable interpolation and internal lookups. So that's Hiera calls withing …




OpenBSD pkg.conf installpath handling with Ansible

Probably everyone using Ansible on OpenBSD figured this out already, but I thought it was quite a nifty application of Jinja templating.

The way pkg.conf is built when using multiple installpath lines is:

installpath = mirror1
installpath += mirror2

The template I settled on is:

{# Magic for handling the '=' vs …



Ansible pkgin module improvements

The default pkgsrc package manager for a bunch of platforms, including SmartOS, is pkgin. While working on a role for dsapid (see: Setting up a SmartOS image server) I noticed that several pieces of functionality of pkgin were not supported by the Ansible module.

As a result one couldn't …




Setting up a SmartOS image server

Recently I've found myself in need of having a local SmartOS image server; while Joyent has a datacenter in Amsterdam, it seems that images are still pulled from the US west coast. After trying various servers and even the plain nginx setup (though that doesn't appear to work anymore …