Install MariaDB on MacOSX

Using brew to install MariaDB: brew install mariadb To manage the service use 'brew services' e.g brew services restart mariadb Notice that the install ran the following: /opt/homebrew/Cellar/mariadb/10.8.3/bin/mysql_install_db --verbose... » More

Hashicorp Nomad Dev Install on Debian

Ensure the deb repo is configured and install nomad: curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" sudo apt-get update... » More

Packer HCL Environment Variables

Converting Packer templates from json to HCL for Packer version 1.7.2. The easiest thing to do is try the automated conversion: packer hcl2_upgrade -output-file=template-converted.pkr.hcl template.json For environment variables we need to set them... » More

CentOS 8 munin-node needs PowerTools

I had the following error installing munin-node on a new CentOS 8 system: Depsolve Error occured: Problem: package munin-node-2.0.54-2.el8.noarch requires perl(Net::SNMP), but none of the providers can be installed\n - conflicting requests - nothing... » More

Gitlab API and Python

To start, create a config file with your Gitlab personal token: vi ~/.python-gitlab.cfg With contents similar to below: default = gitlab ssl_verify = true timeout = 5 url = https://gitlab.com private_token = 1234ABCD1234ABCD... » More

Chef Knife List Nodes with IPs

I had to fiddle a bit with this so possibly worth keeping a note of it. I wanted to pull all the node hostnames and ip addresses from chef for use in hostname lookups and ssh config. knife exec -E 'nodes.find("*:*") {|n| printf "%s - %s \n",... » More