Last active
July 26, 2018 12:50
-
-
Save Schm1tz1/416e1ce85fcf62bb0c8e0d5c5254f58d to your computer and use it in GitHub Desktop.
Vagrantfile for HDP2.6 on CentOS7. Installa ambari, JDK and applies patches. Ambari setup needs to be performes to finish installation afterwards.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "timveil/centos7-hdp-base" | |
config.vm.network "forwarded_port", guest: 8080, host: 18080, host_ip: "127.0.0.1" | |
config.vm.provision "shell", inline: <<-SHELL | |
echo '******* updating packages' | |
yum update -y | |
yum install patch -y | |
echo '******* adding HDP repos and installing ambari server and agent' | |
wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.0.0/ambari.repo -O /etc/yum.repos.d/ambari.repo | |
yum install ambari-server ambari-agent -y | |
echo -n '******* patching ambari agent config...' | |
echo "26a27" >ambari.patch | |
echo "> force_https_protocol=PROTOCOL_TLSv1_2" >>ambari.patch | |
patch /etc/ambari-agent/conf/ambari-agent.ini <ambari.patch | |
echo '******* downloading and install Oracle JDK 8' | |
wget --progress=bar:force --no-check-certificate -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.rpm | |
yum -y localinstall jdk-8u181-linux-x64.rpm | |
alternatives --set java /usr/java/jdk1.8.0_181-amd64/jre/bin/java | |
echo '******* configuring ambari server with default values...' | |
ambari-server setup --silent | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment