V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m51s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m51s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -497,26 +497,26 @@ network:
|
|||||||
enable: true # If you want the preconfiguration file to work on systems both with and without a dhcp
|
enable: true # If you want the preconfiguration file to work on systems both with and without a dhcp
|
||||||
# server, change 'network.static.enable' from "false" to "true" and configure the static
|
# server, change 'network.static.enable' from "false" to "true" and configure the static
|
||||||
# configuration below.
|
# configuration below.
|
||||||
ipv4address: "192.168.128.128"
|
ipv4address: ""
|
||||||
ipv4netmask: "255.255.255.0"
|
ipv4netmask: ""
|
||||||
ipv4gateway: "192.168.128.254"
|
ipv4gateway: ""
|
||||||
ipv4nameserver:
|
ipv4nameserver:
|
||||||
- "135.181.207.105" # dns01.eddns.eu
|
- "135.181.207.105" # dns01.eddns.eu
|
||||||
- "89.58.62.53" # dns02.eddns.de
|
- "89.58.62.53" # dns02.eddns.de
|
||||||
- "138.199.237.109" # dns03.eddns.eu
|
- "138.199.237.109" # dns03.eddns.eu
|
||||||
ipv4nameserver_fallback:
|
ipv4nameserver_fallback: # Only three DNS Resolvers in total are recommended.
|
||||||
- "176.9.93.198" # dnsforge.de
|
#- "176.9.93.198" # dnsforge.de
|
||||||
- "176.9.1.117" # dnsforge.de
|
#- "176.9.1.117" # dnsforge.de
|
||||||
ipv6address: ""
|
ipv6address: "2a03:4000:10:d43:188:68:34:243"
|
||||||
ipv6netmask: ""
|
ipv6netmask: "128"
|
||||||
ipv6gateway: ""
|
ipv6gateway: "fe80::1"
|
||||||
ipv6nameserver:
|
ipv6nameserver:
|
||||||
- "2a01:4f9:c012:a813:135:181:207:105"
|
- "2a01:4f9:c012:a813:135:181:207:105"
|
||||||
- "2a0a:4cc0:1:e6:89:58:62:53"
|
- "2a0a:4cc0:1:e6:89:58:62:53"
|
||||||
- "2a01:4f8:c013:8011:138:199:237:109"
|
- "2a01:4f8:c013:8011:138:199:237:109"
|
||||||
ipv6nameserver_fallback:
|
ipv6nameserver_fallback: # Only three DNS Resolvers in total are recommended.
|
||||||
- "2a01:4f8:151:34aa::198"
|
#- "2a01:4f8:151:34aa::198"
|
||||||
- "2a01:4f8:141:316d::117"
|
#- "2a01:4f8:141:316d::117"
|
||||||
|
|
||||||
################################################################################################################################
|
################################################################################################################################
|
||||||
# Security settings
|
# Security settings
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ yaml_validator() {
|
|||||||
ensure_lowercase "network_choose_interface_auto"
|
ensure_lowercase "network_choose_interface_auto"
|
||||||
ensure_lowercase "network_choose_interface_static"
|
ensure_lowercase "network_choose_interface_static"
|
||||||
ensure_lowercase "network_hostname"
|
ensure_lowercase "network_hostname"
|
||||||
|
ensure_lowercase "network_static_enable"
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
[[ -v network_static_ipv4nameserver_0 ]] && ARY_IPV4_NS+=( "${network_static_ipv4nameserver_0}" )
|
[[ -v network_static_ipv4nameserver_0 ]] && ARY_IPV4_NS+=( "${network_static_ipv4nameserver_0}" )
|
||||||
@@ -143,7 +144,7 @@ yaml_validator() {
|
|||||||
do_log "info" "file_only" "1252() Live environment network check: Auto FQDN ='${var_auto_fqdn}'."
|
do_log "info" "file_only" "1252() Live environment network check: Auto FQDN ='${var_auto_fqdn}'."
|
||||||
|
|
||||||
### Export hostname and IPv4 and IPv6 addresses for further processing according to dynamic results and preseed.yaml settings.
|
### Export hostname and IPv4 and IPv6 addresses for further processing according to dynamic results and preseed.yaml settings.
|
||||||
if [[ "${network_autoconfig_enable}" == "true" && -z "${network_static_ipv4address}" ]]; then
|
if [[ "${network_autoconfig_enable}" == "true" ]]; then
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
VAR_FINAL_NIC="${var_auto_nic}"
|
VAR_FINAL_NIC="${var_auto_nic}"
|
||||||
@@ -158,7 +159,7 @@ yaml_validator() {
|
|||||||
|
|
||||||
do_log "info" "file_only" "1252() Network IPv4 auto configuration: [${network_autoconfig_enable}] and IPv4 Link: [${var_link_ipv4}]."
|
do_log "info" "file_only" "1252() Network IPv4 auto configuration: [${network_autoconfig_enable}] and IPv4 Link: [${var_link_ipv4}]."
|
||||||
|
|
||||||
elif [[ "${network_autoconfig_enable}" == "false" && -n "${network_static_ipv4address}" ]]; then
|
elif [[ "${network_autoconfig_enable}" == "false" ]]; then
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
VAR_FINAL_NIC="${network_choose_interface_static}"
|
VAR_FINAL_NIC="${network_choose_interface_static}"
|
||||||
@@ -173,9 +174,14 @@ yaml_validator() {
|
|||||||
|
|
||||||
do_log "info" "file_only" "1252() Network IPv4 static configuration: [${network_static_ipv4address}] and IPv4 Link: [${var_link_ipv4}]."
|
do_log "info" "file_only" "1252() Network IPv4 static configuration: [${network_static_ipv4address}] and IPv4 Link: [${var_link_ipv4}]."
|
||||||
|
|
||||||
|
elif [[ "${network_autoconfig_enable}" == "false" && -z "${network_static_ipv4address}" ]]; then
|
||||||
|
|
||||||
|
do_log "info" "file_only" "1252() Network IPv4: no IPv4 configuration applied."
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${var_link_ipv6}" == "true" && "${network_autoconfig_enable}" == "true" && "${network_ipv6}" == "true" && -z "${network_static_ipv6address}" ]]; then
|
|
||||||
|
if [[ "${network_autoconfig_enable}" == "true" && "${network_ipv6}" == "true" && -z "${network_static_ipv6address}" ]]; then
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
VAR_FINAL_IPV6="${var_auto_ipv6}"
|
VAR_FINAL_IPV6="${var_auto_ipv6}"
|
||||||
|
|||||||
Reference in New Issue
Block a user