Setup Script - Add Shard Count

This commit is contained in:
Mike Reeves
2018-03-27 14:59:57 -04:00
parent e727690c29
commit 6ff115a3f1

View File

@@ -133,10 +133,6 @@ create_bond() {
fi fi
} }
#create_socore_password() {
# Enter a password for socore
#}
detect_os() { detect_os() {
# Detect Base OS # Detect Base OS
if [ -f /etc/redhat-release ]; then if [ -f /etc/redhat-release ]; then
@@ -224,6 +220,8 @@ master_pillar() {
echo " nids_rules: $RULESETUP" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls echo " nids_rules: $RULESETUP" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls
echo " oinkcode: $OINKCODE" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls echo " oinkcode: $OINKCODE" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls
}
node_pillar() { node_pillar() {
# Create the node pillar # Create the node pillar
touch /tmp/$HOSTNAME.sls touch /tmp/$HOSTNAME.sls
@@ -237,10 +235,12 @@ node_pillar() {
echo " ls_pipeline_batch_size: $LSPIPELINEBATCH" >> /tmp/$HOSTNAME.sls echo " ls_pipeline_batch_size: $LSPIPELINEBATCH" >> /tmp/$HOSTNAME.sls
echo " ls_input_threads: $LSINPUTTHREADS" >> /tmp/$HOSTNAME.sls echo " ls_input_threads: $LSINPUTTHREADS" >> /tmp/$HOSTNAME.sls
echo " ls_batch_count: $LSINPUTBATCHCOUNT" >> /tmp/$HOSTNAME.sls echo " ls_batch_count: $LSINPUTBATCHCOUNT" >> /tmp/$HOSTNAME.sls
echo " es_shard_count: $SHARDCOUNT" >> /tmp/$HOSTNAME.sls
} }
#pcap_pin() {
} # Array3=(`echo ${Array1[@]} ${Array2[@]} | tr ' ' '\n' | sort | uniq -u` )
#}
saltify() { saltify() {
# Install updates and Salt # Install updates and Salt