Creating Business Units and Groups in Sal using a CSV

Obviously I’m a little biased, but I love Sal. But, it can be a little tedious to get everything set up the first time if you have hundreds of Business Units and Machine Groups. I’ve quietly ignored the problem for a while, but then I saw this tweet pop up in my feed: @hunty1er Pretty sure you could automate BU/MG creation through the DB backend. What say you @grahamgilbert ? — Pepijn Bruienne (@bruienne) December 8, 2014 What say I Mr Bruienne? Like the man from Del Monte, I say YES! The plan We’re going to use a few of the parts that make Django and Docker awesome. We will: Make a custom management command that will read in a CSV The command will make the Business Units and Groups if they don’t exist We’re than going to run it in a temporary Docker container when we’re ready to do the actual import. This is one of the strengths of Docker - we can spin up a linked container that will operate on the main database, but won’t interfere with your container serving the app. ...

December 8, 2014

Slides and notes from Twisting Munki

Firstly, thanks if you came to my talk and putting up with me! You can get my slides and code from the GitHub repository.

November 6, 2014

first-boot-pkg updated for Yosemite

It seems like Yosemite introduced an undocumented change that requires any packages that are added an OS X installer (e.g. Netinstall or createOSXinstallPkg) be distribution style packages, or you get a nasty failure accompanied by one of the most unhelpful error messages ever. To fix this, first-boot-pkg now builds distribution style packages.

October 21, 2014

London Apple Admins

I’m delighted to say that the first (first meet that isn’t “let’s go to the pub and get drunk”, anyway!) London Apple Admins meetup is happening on the 3rd September at The Red Herring in St Pauls. I’d like to take all of the credit for organising it, but it was down to the hard work of Ben Toms. The theme this time is “this is what I’m working on at the moment”, so I’ll be talking about my new favourite toy, Docker. ...

August 24, 2014

Personal Automation: Munki (Part 2)

The first step to getting any Mac set up is to get some software onto it. I’m not going to cover how to set up Munki or AutoPkg - there are lots of other places for that information. As a sysadmin, I’m forever testing things. Rather than destroy my own machine, I like to do this in Virtual Machines. My preferred virtualisation solution is VMware Fusion, but unfortunately it’s not very easy to deploy out of the box. You need to do a little bit of work to get it into a package that you can import into Munki, but fortunately the process is well documented on VMware’s site. ...

July 27, 2014

Personal Automation (Part 1)

Earlier this year, I professed my love of Boxen - the personal automation solution based on Puppet released by Github. Indeed, it served me well for quite some time, but I began to find myself spending more time fixing Boxen than actually getting things done. As Boxen was designed for internal use at Github, it set some things up how they liked them - which wasn’t necessarily how I liked them. Sysadmins have similar needs to developers, but not exactly the same. ...

July 26, 2014

Automate yourself out of a job

A massive thanks to everyone who came to my talk today, and thanks to everyone who helped out with the Q&A at the end. All of the code I used in the talk is up on GitHub and here are the slides. Hopefully the video will convey how much fun it actually was - it could have been a disaster, so I’m hugely grateful to everyone who contributed to the discussion at the end.

July 10, 2014

Multi tenanted Munki with Puppet and Sal

Thanks for everyone that came to my talk today, it was fun to finally show off what I’ve been working on for the last year or so. I’m sure the video will be up soon, but in the meantime, here are the slides from the talk.

July 9, 2014

Making packages with AutoPkg

Over the past few weeks, I’ve had the same conversation over and over: people telling me that once they get started using Munki, their next step will be to start using AutoPkg. I gave each person the same response: “you’re doing it wrong”. AutoPkg a has a reputation of being difficult to use. This is totally unjustfied. You don’t need to be using Munki for it to be useful, you don’t need to set it up to run automatically via Jenkins or a LaunchDaemon. If you need to get software into a package, AutoPkg is the easiest way. ...

June 30, 2014

Deploying Sal on Heroku

Setting up everything you need for Sal can be difficult, especially if you only have an OS X server available. Thankfully, Sal is built on top of a very common Python framework, Django. And even more thankfully, you can run Django on a whole host of PaaS providers, including Heroku. Heroku has a very generous free tier that will easily handle a small Sal installation, so let’s get started. Heroku toolbelt If you’ve never used Heroku before, you’re going to need to head over to their site and sign up for a free account. Whilst you’re there, you’re also going to need to install their toolbelt. Grab the package and follow their instructions for linking it to your account. ...

May 19, 2014