First commit and first script
This commit is contained in:
commit
e2b3c129a2
|
@ -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
|
||||
|
Loading…
Reference in New Issue