removed repo and templated network config

This commit is contained in:
AJ Schroeder
2024-07-01 16:36:14 -05:00
parent c7ea82e32d
commit 844fa6bff8
2 changed files with 52 additions and 35 deletions

View File

@@ -17,13 +17,6 @@
<priority t="integer">99</priority> <priority t="integer">99</priority>
<product_dir>/</product_dir> <product_dir>/</product_dir>
</listentry> </listentry>
<listentry t="map">
<alias>repo-openh264</alias>
<media_url>http://codecs.opensuse.org/openh264/openSUSE_Leap/</media_url>
<name>Open H.264 Codec (openSUSE Leap)</name>
<priority t="integer">99</priority>
<product_dir/>
</listentry>
<listentry t="map"> <listentry t="map">
<alias>repo-sle-update</alias> <alias>repo-sle-update</alias>
<media_url>http://download.opensuse.org/update/leap/15.5/sle/</media_url> <media_url>http://download.opensuse.org/update/leap/15.5/sle/</media_url>
@@ -54,14 +47,13 @@
<gfxmode>auto</gfxmode> <gfxmode>auto</gfxmode>
<hiddenmenu>false</hiddenmenu> <hiddenmenu>false</hiddenmenu>
<os_prober>true</os_prober> <os_prober>true</os_prober>
<secure_boot>true</secure_boot> <secure_boot>false</secure_boot>
<terminal>gfxterm</terminal> <terminal>gfxterm</terminal>
<timeout t="integer">8</timeout> <timeout t="integer">8</timeout>
<trusted_grub>false</trusted_grub> <trusted_grub>false</trusted_grub>
<update_nvram>true</update_nvram> <update_nvram>true</update_nvram>
<xen_kernel_append>vga=gfx-1024x768x16</xen_kernel_append> <xen_kernel_append>vga=gfx-1024x768x16</xen_kernel_append>
</global> </global>
<loader_type>grub2</loader_type>
</bootloader> </bootloader>
<kdump> <kdump>
<add_crash_kernel config:type="boolean">false</add_crash_kernel> <add_crash_kernel config:type="boolean">false</add_crash_kernel>
@@ -451,32 +443,7 @@
</hosts_entry> </hosts_entry>
</hosts> </hosts>
</host> </host>
<networking t="map"> ${network}
<dhcp_options t="map">
<dhclient_client_id/>
<dhclient_hostname_option>AUTO</dhclient_hostname_option>
</dhcp_options>
<dns t="map">
<dhcp_hostname t="boolean">true</dhcp_hostname>
<hostname>localhost</hostname>
<resolv_conf_policy>auto</resolv_conf_policy>
</dns>
<interfaces t="list">
<interface t="map">
<bootproto>dhcp</bootproto>
<name>eth0</name>
<startmode>auto</startmode>
<zone>public</zone>
</interface>
</interfaces>
<ipv6 t="boolean">true</ipv6>
<keep_install_network t="boolean">true</keep_install_network>
<managed t="boolean">false</managed>
<routing t="map">
<ipv4_forward t="boolean">false</ipv4_forward>
<ipv6_forward t="boolean">false</ipv6_forward>
</routing>
</networking>
<ntp-client t="map"> <ntp-client t="map">
<ntp_policy>auto</ntp_policy> <ntp_policy>auto</ntp_policy>
<ntp_servers t="list"/> <ntp_servers t="list"/>

View File

@@ -0,0 +1,50 @@
<networking t="map">
<dhcp_options t="map">
<dhclient_client_id/>
<dhclient_hostname_option>AUTO</dhclient_hostname_option>
</dhcp_options>
<dns t="map">
%{ if ip != null ~}
<nameservers config:type="list">
%{ for dns_server in dns ~}
<nameserver>${dns_server}</nameserver>
%{ endfor ~}
</nameservers>
%{ else ~}
<dhcp_hostname t="boolean">true</dhcp_hostname>
<hostname>localhost</hostname>
%{ endif ~}
<resolv_conf_policy>auto</resolv_conf_policy>
</dns>
<interfaces t="list">
<interface t="map">
%{ if ip != null ~}
<bootproto>static</bootproto>
<ipaddr>${ip}</ipaddr>
<prefixlen>${netmask}</prefixlen>
%{ else ~}
<bootproto>dhcp</bootproto>
%{ endif ~}
<name>eth0</name>
<startmode>auto</startmode>
<zone>public</zone>
</interface>
</interfaces>
<ipv6 t="boolean">true</ipv6>
<keep_install_network t="boolean">true</keep_install_network>
<managed t="boolean">false</managed>
<routing t="map">
<ipv4_forward t="boolean">false</ipv4_forward>
<ipv6_forward t="boolean">false</ipv6_forward>
%{ if ip != null ~}
<routes t="list">
<route t="map">
<destination>default</destination>
<device>-</device>
<gateway>${gateway}</gateway>
<netmask>-</netmask>
</route>
</routes>
%{ endif ~}
</routing>
</networking>