no message
parent
1a2af5670e
commit
edf3a5d308
3
config
3
config
|
@ -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"
|
|
@ -6,3 +6,4 @@ config:
|
|||
name: eth0
|
||||
subnets:
|
||||
- type: dhcp
|
||||
control: hotplug
|
||||
|
|
|
@ -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%]
|
||||
gateway: %GATEWAY%
|
||||
dns_nameservers:
|
||||
-%NAMESERVER1%
|
||||
-%NAMESERVER2%
|
||||
dns_search:
|
||||
-%DOMAIN%
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue