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