Created
June 19, 2016 23:36
-
-
Save toff63/821d6b11046288e58e4d110e3ac2742d to your computer and use it in GitHub Desktop.
Create a box with Elasticsearch and Kibana
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
VAGRANTFILE_API_VERSION = "2" | |
$script = <<SCRIPT | |
sudo add-apt-repository -y ppa:webupd8team/java | |
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list | |
echo "deb http://packages.elastic.co/kibana/4.5/debian stable main" | sudo tee -a /etc/apt/sources.list | |
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get -y install oracle-java8-installer | |
sudo apt-get install oracle-java8-set-default | |
sudo apt-get -y install elasticsearch kibana | |
SCRIPT | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.synced_folder ".", "/vagrant", disabled: true | |
config.vm.define "box", primary: true do |master| | |
master.vm.box = "ubuntu/trusty64" | |
master.vm.provision "shell", inline: $script | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment