Skip to content

Commit

Permalink
Update for 5.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peterskim12 committed May 17, 2017
1 parent dffdc90 commit 6240340
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,33 @@ 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.3.2.tar.gz
wget https://artifacts.elastic.co/downloads/kibana/kibana-5.3.2-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/logstash/logstash-5.3.2.tar.gz
wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-5.3.2-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-5.3.2-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.3.2-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.0.tar.gz
wget https://artifacts.elastic.co/downloads/kibana/kibana-5.4.0-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/logstash/logstash-5.4.0.tar.gz
wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-5.4.0-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-5.4.0-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.4.0-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 <<KIBANA_CONF >> /opt/elastic/kibana-5.3.2-linux-x86_64/config/kibana.yml
cat <<KIBANA_CONF >> /opt/elastic/kibana-5.4.0-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 <<ES_CONF >> /opt/elastic/elasticsearch-5.3.2/config/elasticsearch.yml
cat <<ES_CONF >> /opt/elastic/elasticsearch-5.4.0/config/elasticsearch.yml
http.host: [_local_, _enp0s8_]
path.repo: ["/vagrant/es_snapshots"]
bootstrap.memory_lock: true
discovery.zen.minimum_master_nodes: 1
ES_CONF

sed -i -e 's/Xms2g/Xms1g/g' /opt/elastic/elasticsearch-5.3.2/config/jvm.options
sed -i -e 's/Xmx2g/Xmx1g/g' /opt/elastic/elasticsearch-5.3.2/config/jvm.options
sed -i -e 's/Xms2g/Xms1g/g' /opt/elastic/elasticsearch-5.4.0/config/jvm.options
sed -i -e 's/Xmx2g/Xmx1g/g' /opt/elastic/elasticsearch-5.4.0/config/jvm.options

sysctl -w vm.max_map_count=262144
cat <<SYSCTL >> /etc/sysctl.conf
Expand Down Expand Up @@ -68,13 +68,13 @@ SECLIMITS
# END BOOTSTRAP CHECKS CONFIG CHANGES #

# Install X-Pack in Elasticsearch
cd /opt/elastic/elasticsearch-5.3.2
cd /opt/elastic/elasticsearch-5.4.0
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.3.2-linux-x86_64
cd /opt/elastic/kibana-5.4.0-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 &

0 comments on commit 6240340

Please sign in to comment.