-
Notifications
You must be signed in to change notification settings - Fork 2
/
bootstrap.sh
26 lines (25 loc) · 1023 Bytes
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#sudo rpm -Uvh http://repos.mesosphere.com/el/7/noarch/RPMS/mesosphere-el-repo-7-1.noarch.rpm --nodeps
#sudo yum -y install mesos marathon
#sudo yum -y install mesosphere-zookeeper
sudo yum install -y epel-release
sudo yum install -y sshpass net-tools psmisc htop tmux
sudo cat > /etc/hosts << EOF
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.2.2.10 s1
10.2.2.11 s2
10.2.2.12 s3
10.2.2.7 m
EOF
sudo sed -i "s|PasswordAuthentication no|PasswordAuthentication yes|g" /etc/ssh/sshd_config
sudo service sshd restart
#su vagrant
#if [ ! -f $HOME/.ssh/id_rsa.pub ]
#then
#ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N ''
#fi
#sshpass -p "vagrant" ssh-copy-id -i $HOME/.ssh/id_rsa.pub vagrant@m
#sshpass -p "vagrant" ssh-copy-id -i $HOME/.ssh/id_rsa.pub vagrant@s1
#sshpass -p "vagrant" ssh-copy-id -i $HOME/.ssh/id_rsa.pub vagrant@s2
#sshpass -p "vagrant" ssh-copy-id -i $HOME/.ssh/id_rsa.pub vagrant@s3