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
# 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
subnets:
- type: dhcp
control: hotplug

View File

@ -6,12 +6,12 @@ config:
name: eth0
subnets:
- type: static
control: auto
address: %IP_ADDRESS%
netmask: %NETMASK%
routes:
- network: 0.0.0.0
netmask: 0.0.0.0
gateway: %GATEWAY%
- type: nameserver
address: [%NAME_SERVER%]
search: [%DOMAIN%]
dns_nameservers:
-%NAMESERVER1%
-%NAMESERVER2%
dns_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"
else
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
extra_iso_files=" -map $WORKING_DIR/output/network-config network-config"
fi