Adds capability to set undercloud nameserver

This commit is contained in:
Ryan Brady 2014-10-30 15:30:12 -04:00
parent ffa7d3aa46
commit 319c0c78e3
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,7 @@
export NODES_JSON=instackenv.json
export NeutronPublicInterface=eth0
export OVERCLOUD_LIBVIRT_TYPE=qemu
export UNDERCLOUD_NAMESERVER=192.168.122.1
export NETWORK_CIDR=10.0.0.0/8
export FLOATING_IP_START=192.0.2.45
export FLOATING_IP_END=192.0.2.64

View File

@ -56,7 +56,7 @@ ENDPOINT_LIST="--glance-password $UNDERCLOUD_GLANCE_PASSWORD
--ceilometer-password $UNDERCLOUD_CEILOMETER_PASSWORD"
REGISTER_SERVICE_OPTS=
# Needed by ceilometer user in register-endpoint
keystone role-create --name=ResellerAdmin
@ -81,7 +81,8 @@ jq "." <<EOF > $NETWORK_JSON
"cidr": "$NETWORK_CIDR",
"allocation_start": "$DHCP_START",
"allocation_end": "$DHCP_END",
"name": "$PHYSICAL_NETWORK"
"name": "$PHYSICAL_NETWORK",
"nameserver": "${UNDERCLOUD_NAMESERVER:-192.168.122.1}"
}
}
EOF