From e2b3c129a253c2772d98adbeb758113101a78474 Mon Sep 17 00:00:00 2001 From: lafrite Date: Wed, 13 Nov 2013 15:05:36 +0100 Subject: [PATCH] First commit and first script --- install/first_conf.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 install/first_conf.sh diff --git a/install/first_conf.sh b/install/first_conf.sh new file mode 100644 index 0000000..02191cf --- /dev/null +++ b/install/first_conf.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +## Config de Grub +# Save old grub +cp /etc/default/grub /etc/default/grub.back +sed 's/GRUB_DEFAULT=0/GRUB_DEFAULT=4/g' /etc/default/grub > grub.n +mv grub.n /etc/default/grub + + +## Install Salt +# Install +add-apt-repository ppa:saltstack/salt +apt-get update +apt-get install salt-minion +# Config Salt +cp /etc/salt/minion /etc/salt/minion.back +echo "master = 192.168.1.22" >> /etc/salt/minion +# Wait for the answer of the master +salt-minion -l debug +