no message

master
Brie Bruns 2018-05-13 21:29:40 -06:00
parent 1a2af5670e
commit edf3a5d308
4 changed files with 11 additions and 9 deletions

3
config
View File

@ -24,4 +24,5 @@ FORMAT=raw
CONVERT=yes CONVERT=yes
# Addresses to use by default for name servers # Addresses to use by default for name servers
nameservers="8.8.8.8, 1.1.1.1" nameserver1="8.8.8.8"
nameserver2="1.1.1.1"

View File

@ -6,3 +6,4 @@ config:
name: eth0 name: eth0
subnets: subnets:
- type: dhcp - type: dhcp
control: hotplug

View File

@ -6,12 +6,12 @@ config:
name: eth0 name: eth0
subnets: subnets:
- type: static - type: static
control: auto
address: %IP_ADDRESS% address: %IP_ADDRESS%
netmask: %NETMASK% netmask: %NETMASK%
routes: gateway: %GATEWAY%
- network: 0.0.0.0 dns_nameservers:
netmask: 0.0.0.0 -%NAMESERVER1%
gateway: %GATEWAY% -%NAMESERVER2%
- type: nameserver dns_search:
address: [%NAME_SERVER%] -%DOMAIN%
search: [%DOMAIN%]

View File

@ -136,7 +136,7 @@ elif [[ $virt_netinfo_type == "1" ]]; then
extra_iso_files=" -map $WORKING_DIR/output/network-config network-config" extra_iso_files=" -map $WORKING_DIR/output/network-config network-config"
else else
sed -e "s/%DOMAIN%/${domain}/" -e "s/%IP_ADDRESS%/${virt_netinfo_address}/" -e "s/%NETMASK%/${virt_netinfo_netmask}/" \ sed -e "s/%DOMAIN%/${domain}/" -e "s/%IP_ADDRESS%/${virt_netinfo_address}/" -e "s/%NETMASK%/${virt_netinfo_netmask}/" \
-e "s/%GATEWAY%/${virt_netinfo_gateway}/" -e "s/%NAME_SERVER%/${nameservers}/" \ -e "s/%GATEWAY%/${virt_netinfo_gateway}/" -e "s/%NAMESERVER1%/${nameserver1}/" -e "s/%NAMESERVER2%/${nameserver2}/" \
${WORKING_DIR}/network/network-config-v1 > ${WORKING_DIR}/output/network-config ${WORKING_DIR}/network/network-config-v1 > ${WORKING_DIR}/output/network-config
extra_iso_files=" -map $WORKING_DIR/output/network-config network-config" extra_iso_files=" -map $WORKING_DIR/output/network-config network-config"
fi fi