Skip to content

Commit

Permalink
update for 6.0.0-rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
peterskim12 committed Nov 14, 2017
1 parent 0d42db0 commit 013b170
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
1 change: 1 addition & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Vagrant.configure(2) do |config|

# Customize the amount of memory on the VM:
vb.memory = "3072"
vb.cpus = 2
end
#
# View the documentation for the provider you are using for more
Expand Down
38 changes: 19 additions & 19 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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-6.0.0-rc1.tar.gz
wget https://artifacts.elastic.co/downloads/kibana/kibana-6.0.0-rc1-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/logstash/logstash-6.0.0-rc1.tar.gz
wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-6.0.0-rc1-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-6.0.0-rc1-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.0.0-rc1-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.0.0-rc2.tar.gz
wget https://artifacts.elastic.co/downloads/kibana/kibana-6.0.0-rc2-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/logstash/logstash-6.0.0-rc2.tar.gz
wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-6.0.0-rc2-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-6.0.0-rc2-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.0.0-rc2-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-6.0.0-rc1-linux-x86_64/config/kibana.yml
cat <<KIBANA_CONF >> /opt/elastic/kibana-6.0.0-rc2-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-6.0.0-rc1/config/elasticsearch.yml
cat <<ES_CONF >> /opt/elastic/elasticsearch-6.0.0-rc2/config/elasticsearch.yml
http.host: [_local_, _enp0s8_]
path.repo: ["/vagrant/es_snapshots"]
Expand Down Expand Up @@ -64,34 +64,34 @@ root hard as unlimited
SECLIMITS
# END BOOTSTRAP CHECKS CONFIG CHANGES #

cat <<LS_CONF >> /opt/elastic/logstash-6.0.0-rc1/config/logstash.yml
cat <<LS_CONF >> /opt/elastic/logstash-6.0.0-rc2/config/logstash.yml
xpack.monitoring.enabled: true
xpack.management.enabled: true
xpack.management.elasticsearch.url: "http://localhost:9200/"
xpack.management.logstash.poll_interval: 5s
xpack.management.pipeline.id: ["apache"]
# xpack.management.enabled: true
# xpack.management.elasticsearch.url: "http://localhost:9200/"
# xpack.management.logstash.poll_interval: 5s
# xpack.management.pipeline.id: ["apache"]
LS_CONF

# Install X-Pack in Elasticsearch
cd /opt/elastic/elasticsearch-6.0.0-rc1
cd /opt/elastic/elasticsearch-6.0.0-rc2
sudo -u vagrant bash -c 'bin/elasticsearch-plugin install repository-s3 --batch'
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-6.0.0-rc1-linux-x86_64
cd /opt/elastic/kibana-6.0.0-rc2-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 &

# Install X-Pack in Logstash
cd /opt/elastic/logstash-6.0.0-rc1
cd /opt/elastic/logstash-6.0.0-rc2
sudo -u vagrant bash -c 'bin/logstash-plugin install x-pack'

# Run password setup
# Run Elasticsearch
cd /opt/elastic/elasticsearch-6.0.0-rc1
cd /opt/elastic/elasticsearch-6.0.0-rc2
sudo -u vagrant nohup bash -c 'bin/elasticsearch' <&- &>/dev/null &

# Wait for Elasticsearch to startup
Expand All @@ -105,12 +105,12 @@ elasticpwd=$(sed -n 's/PASSWORD elastic = \(.\+\)/\1/p' /opt/elastic/passwords.t
kibanapwd=$(sed -n 's/PASSWORD kibana = \(.\+\)/\1/p' /opt/elastic/passwords.txt)
logstashpwd=$(sed -n 's/PASSWORD logstash_system = \(.\+\)/\1/p' /opt/elastic/passwords.txt)

cat <<KIBANA_CONF >> /opt/elastic/kibana-6.0.0-rc1-linux-x86_64/config/kibana.yml
cat <<KIBANA_CONF >> /opt/elastic/kibana-6.0.0-rc2-linux-x86_64/config/kibana.yml
elasticsearch.username: "kibana"
elasticsearch.password: "$kibanapwd"
KIBANA_CONF

cat <<LS_CONF >> /opt/elastic/logstash-6.0.0-rc1/config/logstash.yml
cat <<LS_CONF >> /opt/elastic/logstash-6.0.0-rc2/config/logstash.yml
xpack.monitoring.elasticsearch.username: "logstash_system"
xpack.monitoring.elasticsearch.password: "$logstashpwd"
xpack.management.elasticsearch.username: "elastic"
Expand Down

0 comments on commit 013b170

Please sign in to comment.