mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Fix indent
This commit is contained in:
@@ -1494,50 +1494,50 @@ manager_global() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$DOCKERNET" ]; then
|
if [ -z "$DOCKERNET" ]; then
|
||||||
DOCKERNET=172.17.0.0
|
DOCKERNET=172.17.0.0
|
||||||
DOCKERBIP=$(echo $DOCKERNET | awk -F'.' '{print $1,$2,$3,1}' OFS='.')/24
|
DOCKERBIP=$(echo $DOCKERNET | awk -F'.' '{print $1,$2,$3,1}' OFS='.')/24
|
||||||
else
|
else
|
||||||
DOCKERBIP=$(echo $DOCKERNET | awk -F'.' '{print $1,$2,$3,1}' OFS='.')/24
|
DOCKERBIP=$(echo $DOCKERNET | awk -F'.' '{print $1,$2,$3,1}' OFS='.')/24
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create a global file for global values
|
# Create a global file for global values
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
"global:"\
|
"global:"\
|
||||||
" soversion: '$SOVERSION'"\
|
" soversion: '$SOVERSION'"\
|
||||||
" hnmanager: '$HNMANAGER'"\
|
" hnmanager: '$HNMANAGER'"\
|
||||||
" ntpserver: '$NTPSERVER'"\
|
" ntpserver: '$NTPSERVER'"\
|
||||||
" dockernet: '$DOCKERNET'"\
|
" dockernet: '$DOCKERNET'"\
|
||||||
" proxy: '$PROXY'"\
|
" proxy: '$PROXY'"\
|
||||||
" mdengine: '$ZEEKVERSION'"\
|
" mdengine: '$ZEEKVERSION'"\
|
||||||
" ids: '$NIDS'"\
|
" ids: '$NIDS'"\
|
||||||
" url_base: '$REDIRECTIT'"\
|
" url_base: '$REDIRECTIT'"\
|
||||||
" managerip: '$MAINIP'" > "$global_pillar"
|
" managerip: '$MAINIP'" > "$global_pillar"
|
||||||
|
|
||||||
if [[ $is_airgap ]]; then
|
if [[ $is_airgap ]]; then
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
" airgap: True"\ >> "$global_pillar"
|
" airgap: True"\ >> "$global_pillar"
|
||||||
else
|
else
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
" airgap: False"\ >> "$global_pillar"
|
" airgap: False"\ >> "$global_pillar"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if TheHive is enabled. If so, add creds and other details
|
# Check if TheHive is enabled. If so, add creds and other details
|
||||||
if [[ "$THEHIVE" == "1" ]]; then
|
if [[ "$THEHIVE" == "1" ]]; then
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
" hiveuser: '$WEBUSER'"\
|
" hiveuser: '$WEBUSER'"\
|
||||||
" hivepassword: '$WEBPASSWD1'"\
|
" hivepassword: '$WEBPASSWD1'"\
|
||||||
" hivekey: '$HIVEKEY'"\
|
" hivekey: '$HIVEKEY'"\
|
||||||
" hiveplaysecret: '$HIVEPLAYSECRET'"\
|
" hiveplaysecret: '$HIVEPLAYSECRET'"\
|
||||||
" cortexuser: '$WEBUSER'"\
|
" cortexuser: '$WEBUSER'"\
|
||||||
" cortexpassword: '$WEBPASSWD1'"\
|
" cortexpassword: '$WEBPASSWD1'"\
|
||||||
" cortexkey: '$CORTEXKEY'"\
|
" cortexkey: '$CORTEXKEY'"\
|
||||||
" cortexorgname: 'SecurityOnion'"\
|
" cortexorgname: 'SecurityOnion'"\
|
||||||
" cortexorguser: 'soadmin'"\
|
" cortexorguser: 'soadmin'"\
|
||||||
" cortexorguserkey: '$CORTEXORGUSERKEY'"\
|
" cortexorguserkey: '$CORTEXORGUSERKEY'"\
|
||||||
" cortexplaysecret: '$CORTEXPLAYSECRET'" >> "$global_pillar"
|
" cortexplaysecret: '$CORTEXPLAYSECRET'" >> "$global_pillar"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Continue adding other details
|
# Continue adding other details
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
" fleet_custom_hostname: "\
|
" fleet_custom_hostname: "\
|
||||||
" fleet_manager: False"\
|
" fleet_manager: False"\
|
||||||
@@ -1548,7 +1548,7 @@ manager_global() {
|
|||||||
" fleet_ip: 'N/A'"\
|
" fleet_ip: 'N/A'"\
|
||||||
" sensoronikey: '$SENSORONIKEY'"\
|
" sensoronikey: '$SENSORONIKEY'"\
|
||||||
" wazuh: $WAZUH"\
|
" wazuh: $WAZUH"\
|
||||||
" managerupdate: $MANAGERUPDATES"\
|
" managerupdate: $MANAGERUPDATES"\
|
||||||
" imagerepo: '$IMAGEREPO'"\
|
" imagerepo: '$IMAGEREPO'"\
|
||||||
" pipeline: 'redis'"\
|
" pipeline: 'redis'"\
|
||||||
"sensoroni:"\
|
"sensoroni:"\
|
||||||
@@ -1565,21 +1565,21 @@ manager_global() {
|
|||||||
"elasticsearch:"\
|
"elasticsearch:"\
|
||||||
" replicas: 0" >> "$global_pillar"
|
" replicas: 0" >> "$global_pillar"
|
||||||
if [ -n "$ESCLUSTERNAME" ]; then
|
if [ -n "$ESCLUSTERNAME" ]; then
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
" true_cluster: True"\
|
" true_cluster: True"\
|
||||||
" true_cluster_name: '$ESCLUSTERNAME'" >> "$global_pillar"
|
" true_cluster_name: '$ESCLUSTERNAME'" >> "$global_pillar"
|
||||||
else
|
else
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
" true_cluster: False"\
|
" true_cluster: False"\
|
||||||
" true_cluster_name: 'so'" >> "$global_pillar"
|
" true_cluster_name: 'so'" >> "$global_pillar"
|
||||||
fi
|
fi
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
" discovery_nodes: 1"\
|
" discovery_nodes: 1"\
|
||||||
" hot_warm_enabled: False"\
|
" hot_warm_enabled: False"\
|
||||||
" cluster_routing_allocation_disk.threshold_enabled: true"\
|
" cluster_routing_allocation_disk.threshold_enabled: true"\
|
||||||
" cluster_routing_allocation_disk_watermark_low: '95%'"\
|
" cluster_routing_allocation_disk_watermark_low: '95%'"\
|
||||||
" cluster_routing_allocation_disk_watermark_high: '98%'"\
|
" cluster_routing_allocation_disk_watermark_high: '98%'"\
|
||||||
" cluster_routing_allocation_disk_watermark_flood_stage: '98%'"\
|
" cluster_routing_allocation_disk_watermark_flood_stage: '98%'"\
|
||||||
" index_settings:"\
|
" index_settings:"\
|
||||||
" so-beats:"\
|
" so-beats:"\
|
||||||
" shards: 1"\
|
" shards: 1"\
|
||||||
@@ -1640,10 +1640,10 @@ manager_global() {
|
|||||||
" upload_queue_size: 4"\
|
" upload_queue_size: 4"\
|
||||||
" encoding: 'gzip'"\
|
" encoding: 'gzip'"\
|
||||||
" interval: 5"\
|
" interval: 5"\
|
||||||
"backup:"\
|
"backup:"\
|
||||||
" locations:"\
|
" locations:"\
|
||||||
" - /opt/so/saltstack/local"\
|
" - /opt/so/saltstack/local"\
|
||||||
"soctopus:"\
|
"soctopus:"\
|
||||||
" playbook:"\
|
" playbook:"\
|
||||||
" rulesets:"\
|
" rulesets:"\
|
||||||
" - windows"\
|
" - windows"\
|
||||||
|
|||||||
Reference in New Issue
Block a user