initial commit
This commit is contained in:
36
containers/kibana
Normal file
36
containers/kibana
Normal file
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
# Configure Elasticsearch for Odin
|
||||
#
|
||||
|
||||
echo -e "\e[93m"
|
||||
|
||||
log() {
|
||||
echo -e "\t\e[96m[*]${1}\e[93m"
|
||||
}
|
||||
|
||||
export IP=$(ip route | awk '/src/{print $9}')
|
||||
echo "kibana" >/etc/hostname
|
||||
echo -e "${IP}\tkibana" >> /etc/hosts
|
||||
|
||||
deluser -q --remove-home ubuntu
|
||||
|
||||
apt-get update || exit 1
|
||||
apt-get --purge remove snapd lxd -y
|
||||
apt-get upgrade -y
|
||||
apt-get install -y htop wget default-jre
|
||||
|
||||
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
|
||||
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" >/etc/apt/sources.list.d/elastic-5.x.list
|
||||
apt-get update
|
||||
apt-get install kibana -y
|
||||
apt-get clean
|
||||
|
||||
sed -i 's/#server.host: "localhost"/server.host: "kibana"/g' /etc/kibana/kibana.yml
|
||||
sed -i 's/#server.name: "your-hostname"/server.name: "kibana"/g' /etc/kibana/kibana.yml
|
||||
sed -i 's/#elasticsearch.url: "http:\/\/localhost:9200"/elasticsearch.url: "http:\/\/elasticsearch:9200"/g' /etc/kibana/kibana.yml
|
||||
|
||||
apt-get install -y prometheus-node-exporter
|
||||
|
||||
systemctl enable kibana
|
||||
systemctl start kibana
|
||||
echo -e "\e[0m"
|
||||
Reference in New Issue
Block a user