bd2kccd / causal-web

CCD web application.
7 stars 2 forks source link

Script the setup of causal web on EC2 machine #11

Closed espinoj closed 7 years ago

yuanzhou commented 8 years ago

Things need to be covered in the bash script:

yuanzhou commented 8 years ago

Created post install bash script, and uploaded to S3 bucket. Configured CfnCluster to read this script from S3 and run it on master node.

So far this script does the following:

#!/bin/bash

# Install Java Runtime 1.8
yum -y install java-1.8.0

# Then use the alternatives command to make Java 1.8 the default.
alternatives --config java <<< 2

# Let's also remove Java 1.7
yum -y remove java-1.7.0-openjdk

# Install MySQL server
yum -y install mysql-server

# Start MySQL
service mysqld start

Since this script is the post install script, CfnCluster will run it on all the cluster nodes. I verified the results on both Master node and compute node.

yuanzhou commented 8 years ago

Since only the master node needs MySQL, no need to install it via the CfnCluster post install script.