From 724a4a9823c0e05f3e9102fd630b7c2645d2db0d Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sun, 4 Oct 2015 14:20:44 +0200 Subject: [PATCH] setup salt provisioning for vagrant --- bootstrap.sh | 26 ++++++++++++++++++++++++++ grains | 0 minion | 11 +++++++++++ pillar/top.sls | 0 roots/base/init.sls | 6 ++++++ roots/top.sls | 11 +++++++++++ roots/vim/init.sls | 2 ++ 7 files changed, 56 insertions(+) create mode 100755 bootstrap.sh create mode 100644 grains create mode 100644 minion create mode 100644 pillar/top.sls create mode 100644 roots/base/init.sls create mode 100644 roots/top.sls create mode 100644 roots/vim/init.sls diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..8f3f04f --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,26 @@ +#!/bin/sh - + +# We just download the bootstrap script by default and execute that. +if [ -x /usr/bin/fetch ]; then + /usr/bin/fetch -o - https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh | sh -s -- "$@" +elif [ -x /usr/bin/curl ]; then + /usr/bin/curl -L https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh | sh -s -- "$@" +else + python \ + -c 'import urllib; print urllib.urlopen("https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh").read()' \ + | sh -s -- "$@" +fi + +cat >/etc/salt/minion <