Linuturk's Natter

Hush Little Baby

My own special version of Hush Little Baby. Hush little baby, don’t say a word. Daddy’s gonna buy you a mockingbird. If that mockingbird doesn’t sing, daddy’s gonna buy you a golden ring. If that golden ring turns brass, daddy’s gonna buy you a looking glass. If that looking glass does break, daddy’s gonna buy you some roller skates. If those roller skates make you fall, daddy’s gonna buy you a bouncy ball.

Running Chocolatey on Linux

Update: This docker image is now available on the Docker Hub as linuturk/mono-choco. Do you want to create Chocolatey packages but don’t want to run a Windows server? Use this Dockerfile to build Chocolatey and do your package development without a Windows system. FROM mono:3.12.1 MAINTAINER Justin Phelps RUN apt-get update && apt-get install -y wget unzip WORKDIR /usr/local/src/choco RUN wget https://github.com/chocolatey/choco/archive/stable.zip RUN unzip stable.zip RUN rm stable.zip WORKDIR /usr/local/src/choco/choco-stable RUN chmod +x build.

Retrying Server Builds with Ansible

A common problem with building multiple servers in the cloud is an intermittent failure in one build that can stop your entire deployment process. With the right retry logic you can avoid this problem with Ansible. I’m using until to check the output from the rax module. Using the length Jinja2 filter, I can check if the correct number of instances have been created. This should retry the task 3 times with a delay of 5 seconds between attempts.

The Go Programming Language

I was fortunate to receive a review copy of The Go Programming Language by Alan A. A. Donovan and Brian W. Kernighan. The following is my review of this book based on my limited experience with Golang. I’m new to Go. I’ve only been through the excellent Tour of Go. This Tour gives you a great hands on trial of Go but leaves out some of the more complex topics that are covered by Donovan and Kernighan’s book.