First commit and first script

This commit is contained in:
lafrite 2013-11-13 15:05:36 +01:00
commit e2b3c129a2
1 changed files with 20 additions and 0 deletions

20
install/first_conf.sh Normal file
View File

@ -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