Last active
February 11, 2023 11:32
-
-
Save iamhowardtheduck/f104b8c6219ecb6f4d0766aa5ca4a3ad to your computer and use it in GitHub Desktop.
ECE Install Script Part 2
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
echo "Welcome to the ECE Auto-Install Script PART 2." | |
echo "DO NOT RUN THIS AS ROOT, BUT AS A USER WITH ROOT RIGHTS" | |
echo "IT WILL FAIL IF YOU RUN AS ROOT, SO DO NOT DO IT!" | |
echo "This is designed to be run on a minimal server install of CentOS 7 AFTER 'yum update' & ECE Install Part 1 has been run." | |
read -n 1 -s -r -p "Press any key to continue" | |
sudo docker info | grep Root | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) install | |
adminPassword=$(grep -oP '(?<=adminconsole_root_password":")[^"]*' /mnt/data/elastic/bootstrap-state/bootstrap-secrets.json) | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.6.1 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.6.0 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.5.3 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.5.2 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.5.1 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.5.0 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.4.3 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.4.2 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.4.1 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.4.0 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.3.3 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.3.2 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.3.1 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.3.0 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.2.3 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.2.2 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.2.1 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.2.0 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.1.3 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.1.2 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.1.1 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.1.0 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.0.1 --user admin --pass ${adminPassword} | |
bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) add-stack-version --version 8.0.0 --user admin --pass ${adminPassword} | |
echo "Import Elastic gpg key" | |
echo | |
sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch | |
echo "Import Elastic gpg key: $(tput setaf 2)[$(tput setaf 4)OK$(tput setaf 2)]$(tput setaf 7)" | |
# | |
# | |
# create Elastic repo | |
echo "Creating Elastic, Kibana, & Logstash repositories" | |
echo | |
sudo touch /etc/yum.repos.d/elasticsearch.repo | |
echo "[elasticsearch-8.x]" | sudo tee -a /etc/yum.repos.d/elasticsearch.repo | |
echo "name=Elasticsearch repository for 8.x packages" | sudo tee -a /etc/yum.repos.d/elasticsearch.repo | |
echo "baseurl=https://artifacts.elastic.co/packages/8.x/yum" | sudo tee -a /etc/yum.repos.d/elasticsearch.repo | |
echo "gpgcheck=1" | sudo tee -a /etc/yum.repos.d/elasticsearch.repo | |
echo "gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch" | sudo tee -a /etc/yum.repos.d/elasticsearch.repo | |
echo "enabled=1" | sudo tee -a /etc/yum.repos.d/elasticsearch.repo | |
echo "autorefresh=1" | sudo tee -a /etc/yum.repos.d/elasticsearch.repo | |
echo "type=rpm-md" | sudo tee -a /etc/yum.repos.d/elasticsearch.repo | |
sudo yum install metricbeat filebeat packetbeat -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment