From 7214ee42a2b6ba44e122601a6e00e5177437b57c Mon Sep 17 00:00:00 2001 From: Peter Kim Date: Wed, 1 Mar 2017 11:54:11 -0500 Subject: [PATCH] update for 5.2.2 --- bootstrap.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index e0ad303..c8a16da 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -10,24 +10,24 @@ apt-get -y -q update apt-get -y -q install openjdk-8-jdk # Download the Elastic product tarballs -wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.1.tar.gz -wget https://artifacts.elastic.co/downloads/kibana/kibana-5.2.1-linux-x86_64.tar.gz -wget https://artifacts.elastic.co/downloads/logstash/logstash-5.2.1.tar.gz -wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-5.2.1-linux-x86_64.tar.gz -wget https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-5.2.1-linux-x86_64.tar.gz -wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.2.1-linux-x86_64.tar.gz +wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.2.tar.gz +wget https://artifacts.elastic.co/downloads/kibana/kibana-5.2.2-linux-x86_64.tar.gz +wget https://artifacts.elastic.co/downloads/logstash/logstash-5.2.2.tar.gz +wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-5.2.2-linux-x86_64.tar.gz +wget https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-5.2.2-linux-x86_64.tar.gz +wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.2.2-linux-x86_64.tar.gz # Untar the bits sudo -u vagrant bash -c 'for f in *.tar.gz; do tar xf $f; done' # Allow all requests to Kibana -cat <> /opt/elastic/kibana-5.2.1-linux-x86_64/config/kibana.yml +cat <> /opt/elastic/kibana-5.2.2-linux-x86_64/config/kibana.yml server.host: "0.0.0.0" KIBANA_CONF # Recommended ES settings to pass bootstrap checks # START BOOTSTRAP CHECKS CONFIG CHANGES # -cat <> /opt/elastic/elasticsearch-5.2.1/config/elasticsearch.yml +cat <> /opt/elastic/elasticsearch-5.2.2/config/elasticsearch.yml http.host: [_local_, _enp0s8_] path.repo: ["/vagrant/es_snapshots"] @@ -35,8 +35,8 @@ bootstrap.memory_lock: true discovery.zen.minimum_master_nodes: 1 ES_CONF -sed -i -e 's/Xms2g/Xms1g/g' /opt/elastic/elasticsearch-5.2.1/config/jvm.options -sed -i -e 's/Xmx2g/Xmx1g/g' /opt/elastic/elasticsearch-5.2.1/config/jvm.options +sed -i -e 's/Xms2g/Xms1g/g' /opt/elastic/elasticsearch-5.2.2/config/jvm.options +sed -i -e 's/Xmx2g/Xmx1g/g' /opt/elastic/elasticsearch-5.2.2/config/jvm.options sysctl -w vm.max_map_count=262144 cat <> /etc/sysctl.conf @@ -68,13 +68,13 @@ SECLIMITS # END BOOTSTRAP CHECKS CONFIG CHANGES # # Install X-Pack in Elasticsearch -cd /opt/elastic/elasticsearch-5.2.1 +cd /opt/elastic/elasticsearch-5.2.2 sudo -u vagrant bash -c 'bin/elasticsearch-plugin install x-pack --batch' # Run Elasticsearch # sudo -u vagrant nohup bash -c 'bin/elasticsearch' <&- &>/dev/null & # Install X-Pack in Kibana -cd /opt/elastic/kibana-5.2.1-linux-x86_64 +cd /opt/elastic/kibana-5.2.2-linux-x86_64 sudo -u vagrant bash -c 'bin/kibana-plugin install x-pack' # Run Kibana # sudo -u vagrant nohup bash -c 'bin/kibana' <&- &>/dev/null &