refs #1026 uses the variable ogboot_ip in the installer, removes the use of the old get interface and ip address by traffic. Now we can configure the ogboot ip and use it in nginx and ipxe compilation

pull/5/head
Luis Gerardo Romero Garcia 2024-10-23 07:44:17 +02:00
parent c5eb804291
commit a005dec399
1 changed files with 2 additions and 2 deletions

View File

@ -538,7 +538,7 @@ def get_ip_address(interface):
return None
def generate_ipxe_script():
ip_address_server = get_ip_address(DEFAULTDEV)
ip_address_server = OGBOOT_IP
template = os.path.join(REPO_DIR, "etc/dhcp_boot.ipxe.tmpl")
ipxe_output = f"{INSTALL_OGBOOT_TARGET}/tftpboot/ipxe_scripts/dhcp_boot.ipxe"
os.makedirs(os.path.dirname(ipxe_output), mode=0o775, exist_ok=True)
@ -618,7 +618,7 @@ def smbConfigure():
def setup_nginx():
try:
# Obtener la IP del servidor
ip_address_server = get_ip_address(DEFAULTDEV)
ip_address_server = OGBOOT_IP
php_version = get_php_fpm_version()
# Leer y modificar la plantilla de configuración de nginx