mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
Fix Docker Settings on new installs
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{%- set DOCKERRANGE = salt['pillar.get']('docker:range') %}
|
{%- set DOCKERRANGE = salt['pillar.get']('docker:range'), '172.17.0.0/24' %}
|
||||||
{%- set DOCKERBIND = salt['pillar.get']('docker:bip') %}
|
{%- set DOCKERBIND = salt['pillar.get']('docker:bip'), '172.17.0.1/24' %}
|
||||||
{
|
{
|
||||||
"registry-mirrors": [ "https://:5000" ],
|
"registry-mirrors": [ "https://:5000" ],
|
||||||
"bip": "{{ DOCKERBIND }}",
|
"bip": "{{ DOCKERBIND }}",
|
||||||
|
|||||||
@@ -291,7 +291,7 @@ rc3_to_2.3.0() {
|
|||||||
INSTALLEDVERSION=2.3.0
|
INSTALLEDVERSION=2.3.0
|
||||||
}
|
}
|
||||||
|
|
||||||
2.3.0_to_2.3.20(){
|
2.3.0_to_2.3.20(){DOCKERSTUFFBIP=$(echo $DOCKERSTUFF | awk -F'.' '{print $1,$2,$3,1}' OFS='.')/24
|
||||||
# Remove PCAP from global
|
# Remove PCAP from global
|
||||||
sed '/pcap:/d' /opt/so/saltstack/local/pillar/global.sls
|
sed '/pcap:/d' /opt/so/saltstack/local/pillar/global.sls
|
||||||
sed '/sensor_checkin_interval_ms:/d' /opt/so/saltstack/local/pillar/global.sls
|
sed '/sensor_checkin_interval_ms:/d' /opt/so/saltstack/local/pillar/global.sls
|
||||||
|
|||||||
@@ -1199,6 +1199,9 @@ manager_global() {
|
|||||||
|
|
||||||
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
|
||||||
|
else
|
||||||
|
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
|
||||||
@@ -1346,6 +1349,9 @@ manager_global() {
|
|||||||
" playbook:"\
|
" playbook:"\
|
||||||
" rulesets:"\
|
" rulesets:"\
|
||||||
" - windows"\
|
" - windows"\
|
||||||
|
"docker:"\
|
||||||
|
" range: '$DOCKERNET/24'"\
|
||||||
|
" bip: '$DOCKERBIP"
|
||||||
"redis_settings:"\
|
"redis_settings:"\
|
||||||
" redis_maxmemory: 812" >> "$global_pillar"
|
" redis_maxmemory: 812" >> "$global_pillar"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user