misc changes

This commit is contained in:
Shane Peters
2019-01-15 13:59:01 -05:00
parent 41a9162c9c
commit 8b580286ba
7 changed files with 44 additions and 14 deletions

View File

@@ -28,12 +28,8 @@ pip install elasticsearch-curator
sed -i 's/#cluster.name: my-application/cluster.name: odin/g' /etc/elasticsearch/elasticsearch.yml
sed -i 's/#node.name: node-1/node.name: node-1/g' /etc/elasticsearch/elasticsearch.yml
sed -i 's/#bootstrap.memory_lock: true/bootstrap.memory_lock: true/g' /etc/elasticsearch/elasticsearch.yml
sed -i "s/#network.host: 192.168.0.1/network.host: ${IP}/g" /etc/elasticsearch/elasticsearch.yml
sed -i 's/-Xms2g/-Xms8g/g' /etc/elasticsearch/jvm.options
sed -i 's/-Xmx2g/-Xmx8g/g' /etc/elasticsearch/jvm.options
mkdir /etc/curator/
cat >/etc/curator/delete_indices.yml <<EOF
---

View File

@@ -9,7 +9,7 @@ log() {
}
export CONF_411=https://gist.githubusercontent.com/scoutsec/4a4841ad4ea019190bfcc7d87b663600/raw/4424e66e50033c2e72559310a7bd25d8e959f023/411.conf
export FOUR11_URL=https://github.com/etsy/411/releases/download/v1.4.0/release-es5x.tgz
export FOUR11_URL=https://github.com/etsy/411/releases/download/v1.5.0/release.tgz
export IP=$(ip route | awk '/src/{print $9}')
echo "fouroneone" >/etc/hostname
echo -e "${IP}\tfouroneone" >> /etc/hosts

View File

@@ -224,8 +224,7 @@ else
critical-stack-intel pull
fi
add-apt-repository -y -u ppa:oisf/suricata-stable
apt-get install -y prometheus-node-exporter suricata
apt-get install -y prometheus-node-exporter
systemctl enable bro
systemctl start bro

View File

@@ -8,7 +8,7 @@ log() {
echo -e "\t\e[96m[*]${1}\e[93m"
}
export KAFKA_URL='http://apache.claz.org/kafka/0.11.0.0/kafka_2.11-0.11.0.0.tgz'
export KAFKA_URL='http://apache.claz.org/kafka/2.1.0/kafka_2.12-2.1.0.tgz'
export IP=$(ip route | awk '/src/{print $9}')
echo "kafka" >/etc/hostname
echo "${IP}\tkafka" >> /etc/hosts
@@ -22,7 +22,7 @@ apt-get install -y htop wget default-jre zookeeperd prometheus-node-exporter
useradd -r -d /opt/kafka -s /bin/true kafka
mkdir /var/lib/kafka && chown kafka /var/lib/kafka
wget -O /opt/kafka.tgz ${KAFKA_URL}
wget -O /opt/kafka.tgz ${KAFKA_URL} || (echo "COULDN'T DOWNLOAD KAFKA" && exit 1)
tar -xzf /opt/kafka.tgz -C /opt
rm /opt/kafka.tgz
mv /opt/kafka_* /opt/kafka