Use salt for provisioning

This commit is contained in:
Martin Polden
2014-12-22 00:19:01 +01:00
parent bea550f669
commit 959c0a8360
16 changed files with 60 additions and 75 deletions

14
salt/roots/golang.sls Normal file
View File

@ -0,0 +1,14 @@
curl:
pkg:
- installed
curl -L https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz | tar -zxC /usr/local:
cmd.run:
- unless: test -d /usr/local/go
/etc/profile.d/golang.sh:
file.managed:
- source: salt://files/golang.sh
- user: root
- group: root
- mode: 0644