2016-06-14 16:21:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
echo node > /var/tmp/role
|
|
|
|
|
2016-06-30 13:21:58 +00:00
|
|
|
# Some debug tools
|
2016-06-14 16:40:41 +00:00
|
|
|
sudo apt-get --yes update
|
|
|
|
sudo apt-get --yes upgrade
|
2016-07-04 09:32:33 +00:00
|
|
|
sudo apt-get --yes install screen vim telnet tcpdump python-pip traceroute iperf3 nmap ethtool curl git dnsutils
|
2016-06-14 16:40:41 +00:00
|
|
|
|
2016-06-20 10:02:25 +00:00
|
|
|
# SSH
|
2016-06-14 16:21:56 +00:00
|
|
|
sudo rm -rf /root/.ssh
|
|
|
|
sudo mv ~vagrant/ssh /root/.ssh
|
2016-06-20 10:02:25 +00:00
|
|
|
sudo rm -f /root/.ssh/id_rsa*
|
2016-06-14 16:21:56 +00:00
|
|
|
sudo chown -R root: /root/.ssh
|
|
|
|
|
2016-06-30 09:53:54 +00:00
|
|
|
# DISABLED: switched to new box which has 100G / partition
|
2016-06-29 14:40:34 +00:00
|
|
|
# Setup new drive for docker
|
2016-06-30 09:53:54 +00:00
|
|
|
#sudo mkfs.ext4 /dev/vdb
|
|
|
|
#sudo mkdir -p /var/lib/docker
|
|
|
|
#sudo echo '/dev/vdb /var/lib/docker ext4 defaults,noatime,nodiratime 0 0' >> /etc/fstab
|
|
|
|
#sudo mount -a
|
2016-06-29 14:40:34 +00:00
|
|
|
|