-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovision.sh
58 lines (40 loc) · 1.34 KB
/
provision.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Install MongoDB
echo "installing mongodb"
cat << EOF2 >> /etc/yum.repos.d/mongo-org-2.6.repo
[mongodb-org-2.6]
name=MongoDB 2.6 Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1
EOF2
yum install -y mongodb-org
/etc/init.d/mongod start
# Install Java 8
echo "installing Java"
wget -q --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.rpm"
rpm -i jdk-8u60-linux-x64.rpm
rm jdk-8u60-linux-x64.rpm
# Install git
echo "installing git"
yum install -y git
# Install Ansible
echo "installing ansible"
yum install -y ansible
# Install Maven
echo "installing maven"
wget -q http://www.motorlogy.com/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz -O apache-maven-3.3.3-bin.tar.gz
echo "installing maven"
tar -xf apache-maven-3.3.3-bin.tar.gz -C /opt
rm apache-maven-3.3.3-bin.tar.gz
echo "export MAVEN_HOME=/opt/apache-maven-3.3.3" >> /home/vagrant/.bashrc
echo "export PATH=\$MAVEN_HOME/bin:\$PATH" >> /home/vagrant/.bashrc
# install node
echo "installing node"
yum install -y epel-release
yum install -y nodejs npm
echo "installing fabric"
yum install -y fabric
# remove old message of the day
echo "cleanup"
rm /etc/motd
yum clean all