diff --git a/bootstrap.sh b/bootstrap.sh index 4a9532a..e0ad303 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.0.tar.gz -wget https://artifacts.elastic.co/downloads/kibana/kibana-5.2.0-linux-x86_64.tar.gz -wget https://artifacts.elastic.co/downloads/logstash/logstash-5.2.0.tar.gz -wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-5.2.0-linux-x86_64.tar.gz -wget https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-5.2.0-linux-x86_64.tar.gz -wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.2.0-linux-x86_64.tar.gz +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 # 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.0-linux-x86_64/config/kibana.yml +cat <> /opt/elastic/kibana-5.2.1-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.0/config/elasticsearch.yml +cat <> /opt/elastic/elasticsearch-5.2.1/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.0/config/jvm.options -sed -i -e 's/Xmx2g/Xmx1g/g' /opt/elastic/elasticsearch-5.2.0/config/jvm.options +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 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.0 +cd /opt/elastic/elasticsearch-5.2.1 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.0-linux-x86_64 +cd /opt/elastic/kibana-5.2.1-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 &