Skip to content

Instantly share code, notes, and snippets.

View proffalken's full-sized avatar

Matthew Macdonald-Wallace proffalken

View GitHub Profile
@proffalken
proffalken / Dockerfile
Created January 25, 2017 14:56
Jenkins Blue Ocean Python Development
FROM jenkinsci/blueocean:latest
USER root
RUN apk add --no-cache --update \
python \
python-dev \
py-pip \
build-base \
&& pip install virtualenv \
#!/bin/bash
#
# list the authors of a given release in Git
#
TAG=$1
START_TAG=$(echo $TAG | cut -d '.' -f 1).0.0
echo "FETCHING TAGS"
git fetch
echo "CLEANING UP....."
rm combinedOutput.tmp
@proffalken
proffalken / Notes
Created January 20, 2017 20:30
XPS-15
* Switch to AHCI mode so USB is detected
* Use UFEI Installer on USB stick
* Disk is on /dev/nvme0*
* Read https://aprescott.com/posts/dual-booting-windows-and-linux-with-encryption
* Resize C: from within windows based on http://www.disk-partition.com/articles/shrink-volume-not-enough-space-4348.html
* Reboot
* Use `gdisk` to create new partitions based on https://wiki.archlinux.org/index.php/Installation_guide and https://wiki.archlinux.org/index.php/Dm-crypt
* Install Arch
* Reboot
@proffalken
proffalken / cv.md
Last active September 22, 2020 22:26
Matthew Macdonald-Wallace
@proffalken
proffalken / Playbook Output
Created November 16, 2015 13:20
Issues with ansible templates
TASK: [nsca | Install NSCA Agent] *********************************************
ok: [localhost]
TASK: [nsca | Install NSCA Agent] *********************************************
skipping: [localhost]
TASK: [nsca | Ensure that the "nagios" user exists] ***************************
ok: [localhost]
TASK: [nsca | Start and enable the NSCA Service] ******************************
@proffalken
proffalken / gist:f23b7ad26b9f5f9596a5
Created November 6, 2015 08:47
Raspberry Pi Links
Buy it: http://cpc.farnell.com/raspberry-pi/rpi2-modb-8gb-noobs/sbc-rpi-2-model-b8gb-noobs/dp/SC13795
@proffalken
proffalken / gist:a0c67a430f75b6548fb5
Created October 14, 2015 15:07
Docker Ansible TestKitchen CI Thoughts
Ansible insists on using SystemD when running on Centos7, Docker and SystemD don't play well together, especially if you start to introduce DBUS into the mix as well (firewalld I'm looking at you!).
This is totally understandable as Docker is effectively a replacement for systemd (I know that's not strictly accurate, but for now it will suffice!)
The primary issue is that Ansible assumes that the process manager (upstart/sysV/SystemD) will be PID 1 and in Docker that's not going to be the case because it's a container meaning that we need to do shitty things like passing "use_docker" as an ansible extra var and then enable/disable in tasks appropriately, working around out testing infrastructure defeating the whole point of having it
I don't doubt that Docker is great for testing standalone applications or containers where you are only running Apache/MySQL/whatever but to test Ansible plays seems to be difficult because Ansible expects to see a system process manager and Docker doesn't have one :simple_smi