Created
January 21, 2018 19:37
-
-
Save kchandan/142ed9ec429211d9f2f67d0dda37d9cc to your computer and use it in GitHub Desktop.
Ambari Vagrantfile
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "geerlingguy/centos7" | |
config.vm.network "forwarded_port", guest: 8080, host: 8080 | |
config.vm.network "public_network" | |
config.vm.synced_folder ".", "/vagrant_data" | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "8196" | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo curl http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.0.0/ambari.repo -o /etc/yum.repos.d/ambari.repo | |
sudo yum install -y ambari-server ambari-agent git | |
sudo ambari-server setup -s | |
sudo ambari-server start | |
sudo ambari-agent start | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment