diff --git a/salt/docker/defaults.yaml b/salt/docker/defaults.yaml index 2e5e28a6c..dcdc9e497 100644 --- a/salt/docker/defaults.yaml +++ b/salt/docker/defaults.yaml @@ -1,8 +1,6 @@ docker: - bip: '172.17.0.1' - range: '172.17.0.0/24' - sorange: '172.17.1.0/24' - sobip: '172.17.1.1' + range: '172.17.1.0/24' + bip: '172.17.1.1' containers: 'so-dockerregistry': final_octet: 20 @@ -202,4 +200,4 @@ docker: final_octet: 99 custom_bind_mounts: [] extra_hosts: [] - extra_env: [] \ No newline at end of file + extra_env: [] diff --git a/salt/docker/init.sls b/salt/docker/init.sls index 897af9b93..5f645a9a0 100644 --- a/salt/docker/init.sls +++ b/salt/docker/init.sls @@ -102,8 +102,8 @@ dockerreserveports: sos_docker_net: docker_network.present: - name: sobridge - - subnet: {{ DOCKER.sorange }} - - gateway: {{ DOCKER.sobip }} + - subnet: {{ DOCKER.range }} + - gateway: {{ DOCKER.bip }} - options: com.docker.network.bridge.name: 'sobridge' com.docker.network.driver.mtu: '1500' diff --git a/salt/docker/soc_docker.yaml b/salt/docker/soc_docker.yaml index b6f5ca0ca..73e8063d9 100644 --- a/salt/docker/soc_docker.yaml +++ b/salt/docker/soc_docker.yaml @@ -7,14 +7,6 @@ docker: description: Default docker IP range for containers. helpLink: docker.html advanced: True - sobip: - description: Bind IP for the SO docker interface. - helpLink: docker.html - advanced: True - sorange: - description: IP range for the SO docker containers. - helpLink: docker.html - advanced: True containers: so-curator: &dockerOptions final_octet: @@ -68,4 +60,4 @@ docker: so-strelka-filestream: *dockerOptions so-strelka-frontend: *dockerOptions so-strelka-gatekeeper: *dockerOptions - so-strelka-manager: *dockerOptions \ No newline at end of file + so-strelka-manager: *dockerOptions diff --git a/salt/podman/init.sls b/salt/podman/init.sls index d5efa0fdb..119857840 100644 --- a/salt/podman/init.sls +++ b/salt/podman/init.sls @@ -44,8 +44,8 @@ podman_docker_symlink: sos_docker_net: docker_network.present: - name: sobridge - - subnet: {{ DOCKER.sorange }} - - gateway: {{ DOCKER.sobip }} + - subnet: {{ DOCKER.range }} + - gateway: {{ DOCKER.bip }} - options: com.docker.network.bridge.name: 'sobridge' com.docker.network.driver.mtu: '1500' diff --git a/salt/vars/globals.map.jinja b/salt/vars/globals.map.jinja index 70a702225..9ce509d7b 100644 --- a/salt/vars/globals.map.jinja +++ b/salt/vars/globals.map.jinja @@ -22,8 +22,8 @@ 'md_engine': INIT.PILLAR.global.mdengine, 'pipeline': INIT.PILLAR.global.pipeline, 'so_version': INIT.PILLAR.global.soversion, - 'so_docker_bip': DOCKER.sobip, - 'so_docker_range': DOCKER.sorange, + 'so_docker_bip': DOCKER.bip, + 'so_docker_range': DOCKER.range, 'url_base': INIT.PILLAR.global.url_base, 'so_model': INIT.GRAINS.get('sosmodel',''), 'sensoroni_key': INIT.PILLAR.sensoroni.config.sensoronikey, diff --git a/setup/so-functions b/setup/so-functions index 62be1c31e..a088b7f8a 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -254,15 +254,10 @@ collect_dns_domain() { collect_dockernet() { if ! whiptail_dockernet_check; then whiptail_dockernet_sosnet "172.17.1.0" - whiptail_dockernet_nososnet "172.17.0.0" while ! valid_ip4 "$DOCKERNET"; do whiptail_invalid_input - whiptail_dockernet_nonsosnet "$DOCKERNET" - done - while ! valid_ip4 "$DOCKERNET2"; do - whiptail_invalid_input - whiptail_dockernet_sosnet "$DOCKERNET2" + whiptail_dockernet_sosnet "$DOCKERNET" done fi } @@ -1105,10 +1100,7 @@ docker_registry() { logCmd "mkdir -p /etc/docker" # This will get applied so docker can attempt to start if [ -z "$DOCKERNET" ]; then - DOCKERNET=172.17.0.0 - fi - if [ -z "$DOCKERNET2" ]; then - DOCKERNET2=172.17.1.0 + DOCKERNET=172.17.1.0 fi # Make the host use the manager docker registry DNETBIP=$(echo $DOCKERNET | awk -F'.' '{print $1,$2,$3,1}' OFS='.')/24 @@ -1491,13 +1483,10 @@ create_global() { fi if [ -z "$DOCKERNET" ]; then - DOCKERNET=172.17.0.0 - DOCKERNET2=172.17.1.0 + DOCKERNET=172.17.1.0 DOCKERBIP=$(echo $DOCKERNET | awk -F'.' '{print $1,$2,$3,1}' OFS='.')/24 - DOCKER2BIP=$(echo $DOCKERNET2 | awk -F'.' '{print $1,$2,$3,1}' OFS='.') else DOCKERBIP=$(echo $DOCKERNET | awk -F'.' '{print $1,$2,$3,1}' OFS='.')/24 - DOCKER2BIP=$(echo $DOCKERNET2 | awk -F'.' '{print $1,$2,$3,1}' OFS='.') fi if [ -f "$global_pillar_file" ]; then @@ -1562,8 +1551,6 @@ docker_pillar() { touch $adv_docker_pillar_file printf '%s\n'\ "docker:"\ - " sorange: '$DOCKERNET2/24'"\ - " sobip: '$DOCKER2BIP'"\ " range: '$DOCKERNET/24'"\ " bip: '$DOCKERBIP'" > $docker_pillar_file } diff --git a/setup/so-whiptail b/setup/so-whiptail index 86302ae08..428bfe702 100755 --- a/setup/so-whiptail +++ b/setup/so-whiptail @@ -329,20 +329,8 @@ whiptail_dockernet_sosnet() { [ -n "$TESTING" ] && return - DOCKERNET2=$(whiptail --title "$whiptail_title" --inputbox \ - "\nEnter a /24 size network range for SOS containers to use WITHOUT the /24 suffix. This range will be used on ALL nodes." 11 65 "$1" 3>&1 1>&2 2>&3) - - local exitstatus=$? - whiptail_check_exitstatus $exitstatus - -} - -whiptail_dockernet_nososnet() { - - [ -n "$TESTING" ] && return - DOCKERNET=$(whiptail --title "$whiptail_title" --inputbox \ - "\nEnter a /24 size network range for NON SOS containers to use WITHOUT the /24 suffix. This range will be used on ALL nodes." 11 65 "$1" 3>&1 1>&2 2>&3) + "\nEnter a /24 size network range for SOS containers to use WITHOUT the /24 suffix. This range will be used on ALL nodes." 11 65 "$1" 3>&1 1>&2 2>&3) local exitstatus=$? whiptail_check_exitstatus $exitstatus