Shane Dowling : Using PPAs with Salt-States

I couldn't seem to find a decent tutorial on using PPA's to manage repos with salt states so I'm documenting it here.

Say you want to install golang using these

sudo add-apt-repository ppa:duh/golang
sudo apt-get update
sudo apt-get install golang

Well, to replicate this into a salt state it's pretty straight-foward. This also ensures you always have an up-to-date version of go.

 - latest
 - name: ppa:duh/golang

That's it, I just struggled to find that anyway.

Also, I'm aware gvm is awesome but I wanted to get something up and running quick and this was a nice example.