
In preparation for Liberty, which removes some networks and adds a new type of network interface configuration (manual), this patch refactors the osbash networking code. - fewer hardcoded settings (e.g., removed hardcoded list of networks from osbash.sh) - eliminated code duplication for client-side network configuration and split remaining code into separate libraries (functions.ubuntu.sh, functions.fedora.sh) - simplify code, e.g. by removing some magic that deduced network names for KVM from variable names like MGMT_NET - universal functions for reading network and network interface configuration into arrays (get_host_network_config, get_node_netif_config) - the number of networks is no longer hardcoded in the template for Windows hostnet creation - renamed some variables, functions and files to (hopefully) be easier to understand Change-Id: Ib0ed26e24d07e093f7a2bf29723b53b558cd769b
21 lines
482 B
Plaintext
21 lines
482 B
Plaintext
# Node VM configuration. Used by osbash/wbatch (host and guest).
|
|
|
|
# Port forwarding
|
|
VM_SSH_PORT=2230
|
|
VM_WWW_PORT=8888
|
|
|
|
# Assign network interfaces to networks
|
|
NET_IF_0=dhcp
|
|
# Mgmt network
|
|
NET_IF_1="static 10.0.0.11"
|
|
# API/external network
|
|
NET_IF_2="static 203.0.113.11"
|
|
|
|
# Controller node is running many services. For Kilo, 2GB RAM
|
|
# is required for expected performance.
|
|
VM_MEM=2048
|
|
|
|
# Override number of virtual CPUs (default is 1)
|
|
# To edit uncomment the line below
|
|
# VM_CPUS=1
|