no message

master
Brie Bruns 2018-05-13 21:18:43 -06:00
parent 49156f336d
commit 1a2af5670e
4 changed files with 12 additions and 7 deletions

2
config
View File

@ -23,3 +23,5 @@ FORMAT=raw
# convert image format : yes or no # convert image format : yes or no
CONVERT=yes CONVERT=yes
# Addresses to use by default for name servers
nameservers="8.8.8.8, 1.1.1.1"

View File

@ -6,5 +6,3 @@ config:
name: eth0 name: eth0
subnets: subnets:
- type: dhcp - type: dhcp
- type: nameserver
search: [%DOMAIN%]

View File

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

View File

@ -134,6 +134,11 @@ elif [[ $virt_netinfo_type == "1" ]]; then
if [[ ${virt_netinfo_address} == "dhcp" ]]; then if [[ ${virt_netinfo_address} == "dhcp" ]]; then
sed -e "s/%DOMAIN%/${domain}/" ${WORKING_DIR}/network/network-config-dhcp-v1 > ${WORKING_DIR}/output/network-config sed -e "s/%DOMAIN%/${domain}/" ${WORKING_DIR}/network/network-config-dhcp-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"
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}/" \
${WORKING_DIR}/network/network-config-v1 > ${WORKING_DIR}/output/network-config
extra_iso_files=" -map $WORKING_DIR/output/network-config network-config"
fi fi
elif [[ $virt_netinfo_type == "2" ]]; then elif [[ $virt_netinfo_type == "2" ]]; then
echo "Not implemented yet!" echo "Not implemented yet!"