Allow for an IP/netmask to be passed in instack.answers
Change-Id: I2a359707324042f922112c51325c7778ee9a9732
This commit is contained in:
parent
f53bca5eff
commit
5f34fa989d
@ -33,7 +33,7 @@
|
|||||||
],
|
],
|
||||||
"addresses": [
|
"addresses": [
|
||||||
{
|
{
|
||||||
"ip_netmask": "{{LOCAL_IP}}/24"
|
"ip_netmask": "{{PUBLIC_INTERFACE_IP}}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ template = os.path.join(os.path.dirname(__file__),
|
|||||||
|
|
||||||
context = {
|
context = {
|
||||||
'LOCAL_IP': os.environ.get('LOCAL_IP', '192.0.2.1'),
|
'LOCAL_IP': os.environ.get('LOCAL_IP', '192.0.2.1'),
|
||||||
|
'PUBLIC_INTERFACE_IP': os.environ.get('PUBLIC_INTERFACE_IP', '192.0.2.1/24'),
|
||||||
'LOCAL_INTERFACE': os.environ.get('LOCAL_INTERFACE', 'eth1'),
|
'LOCAL_INTERFACE': os.environ.get('LOCAL_INTERFACE', 'eth1'),
|
||||||
'MASQUERADE_NETWORK': os.environ.get('MASQUERADE_NETWORK', '192.0.2.0/24'),
|
'MASQUERADE_NETWORK': os.environ.get('MASQUERADE_NETWORK', '192.0.2.0/24'),
|
||||||
'DHCP_START': os.environ.get('DHCP_START', '192.0.2.5'),
|
'DHCP_START': os.environ.get('DHCP_START', '192.0.2.5'),
|
||||||
|
@ -16,8 +16,9 @@ IMAGE_PATH=.
|
|||||||
### LOCAL_IP ###
|
### LOCAL_IP ###
|
||||||
# IP address to assign to the interface on the Undercloud that will
|
# IP address to assign to the interface on the Undercloud that will
|
||||||
# be handling the PXE boots and DHCP for Overcloud instances.
|
# be handling the PXE boots and DHCP for Overcloud instances.
|
||||||
# LOCAL_IP will be assigned to LOCAL_INTERFACE
|
# LOCAL_IP will be assigned to LOCAL_INTERFACE, and must be in
|
||||||
LOCAL_IP=192.0.2.1
|
# IP/PREFIX format.
|
||||||
|
LOCAL_IP=192.0.2.1/24
|
||||||
|
|
||||||
### LOCAL_INTERFACE ###
|
### LOCAL_INTERFACE ###
|
||||||
# Network interface on the Undercloud that will be handling the PXE boots and
|
# Network interface on the Undercloud that will be handling the PXE boots and
|
||||||
|
@ -13,9 +13,13 @@ vi ~/instack.answers
|
|||||||
echo "Sourcing answers file from instack.answers..."
|
echo "Sourcing answers file from instack.answers..."
|
||||||
source ~/instack.answers
|
source ~/instack.answers
|
||||||
|
|
||||||
|
# Munge up LOCAL_IP. Keep in sync with instack-install-undercloud
|
||||||
|
export PUBLIC_INTERFACE_IP="$LOCAL_IP"
|
||||||
|
export LOCAL_IP="${LOCAL_IP%/*}"
|
||||||
|
|
||||||
|
|
||||||
export DEPLOYMENT_MODE
|
export DEPLOYMENT_MODE
|
||||||
export IMAGE_PATH
|
export IMAGE_PATH
|
||||||
export LOCAL_IP
|
|
||||||
export DNSMASQ_START
|
export DNSMASQ_START
|
||||||
export DNSMASQ_END
|
export DNSMASQ_END
|
||||||
export LOCAL_INTERFACE
|
export LOCAL_INTERFACE
|
||||||
|
@ -58,9 +58,14 @@ $INSTACKUNDERCLOUDELEMENTS:\
|
|||||||
echo "Sourcing answers file from instack.answers..."
|
echo "Sourcing answers file from instack.answers..."
|
||||||
source ~/instack.answers
|
source ~/instack.answers
|
||||||
|
|
||||||
|
# Munge up LOCAL_IP. Keep in sync with instack-apply-config
|
||||||
|
export PUBLIC_INTERFACE_IP="$LOCAL_IP"
|
||||||
|
export LOCAL_IP="${LOCAL_IP%/*}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export IMAGE_PATH
|
export IMAGE_PATH
|
||||||
export LOCAL_INTERFACE
|
export LOCAL_INTERFACE
|
||||||
export LOCAL_IP
|
|
||||||
export MASQUERADE_NETWORK
|
export MASQUERADE_NETWORK
|
||||||
export DHCP_START
|
export DHCP_START
|
||||||
export DHCP_END
|
export DHCP_END
|
||||||
|
Loading…
Reference in New Issue
Block a user