Created
October 10, 2016 18:55
-
-
Save ajpen/e3c8c23e3822ed58634622c420fdaa32 to your computer and use it in GitHub Desktop.
Elasticsearch vagrant provisioning file (based on https://qbox.io/blog/qbox-a-vagrant-virtual-machine-for-elasticsearch-2-x)
This file contains 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
# install openjdk-7 | |
sudo apt-get purge openjdk* | |
sudo apt-get -y install openjdk-7-jdk | |
# Install elasticsearch | |
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 | |
sudo apt-get update && sudo apt-get install elasticsearch | |
sudo update-rc.d elasticsearch defaults 95 10 | |
sudo /etc/init.d/elasticsearch start | |
## UPDATES TO THE Elasticsearch config | |
# Expose the node | |
sudo echo "network.host: 0.0.0.0" >> /etc/elasticsearch/elasticsearch.yml | |
# Restart | |
sudo /etc/init.d/elasticsearch restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment