File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1515
1616export DEBIAN_FRONTEND=noninteractive
1717
18- export CONTROLLER_HOST=172.16.0.200
18+ # export CONTROLLER_HOST=172.16.0.200
19+ # Dynamically determine first three octets if user specifies alternative IP ranges. Fourth octet still hardcoded
20+ export CONTROLLER_HOST=$( ifconfig eth1 | awk ' /inet addr/ {split ($2,A,":"); print A[2]}' | sed ' s/\.[0-9]*$/.200/' )
1921export GLANCE_HOST=${CONTROLLER_HOST}
2022export MYSQL_HOST=${CONTROLLER_HOST}
2123export KEYSTONE_ENDPOINT=${CONTROLLER_HOST}
Original file line number Diff line number Diff line change @@ -163,7 +163,9 @@ keystone endpoint-create --region RegionOne --service_id $KEYSTONE_SERVICE_ID --
163163
164164# Cinder Block Storage Service
165165CINDER_SERVICE_ID=$( keystone service-list | awk ' /\ volume\ / {print $2}' )
166- CINDER_ENDPOINT=" 172.16.0.211"
166+ # CINDER_ENDPOINT="172.16.0.211"
167+ # Dynamically determine first three octets if user specifies alternative IP ranges. Fourth octet still hardcoded
168+ CINDER_ENDPOINT=$( ifconfig eth1 | awk ' /inet addr/ {split ($2,A,":"); print A[2]}' | sed ' s/\.[0-9]*$/.211/' )
167169PUBLIC=" http://$CINDER_ENDPOINT :8776/v1/%(tenant_id)s"
168170ADMIN=$PUBLIC
169171INTERNAL=$PUBLIC
Original file line number Diff line number Diff line change @@ -159,7 +159,9 @@ keystone endpoint-create --region RegionOne --service_id $KEYSTONE_SERVICE_ID --
159159
160160# Cinder Block Storage Service
161161CINDER_SERVICE_ID=$( keystone service-list | awk ' /\ volume\ / {print $2}' )
162- CINDER_ENDPOINT=" 172.16.0.211"
162+ # CINDER_ENDPOINT="172.16.0.211"
163+ # Dynamically determine first three octets if user specifies alternative IP ranges. Fourth octet still hardcoded
164+ CINDER_ENDPOINT=$( ifconfig eth1 | awk ' /inet addr/ {split ($2,A,":"); print A[2]}' | sed ' s/\.[0-9]*$/.211/' )
163165PUBLIC=" http://$CINDER_ENDPOINT :8776/v1/%(tenant_id)s"
164166ADMIN=$PUBLIC
165167INTERNAL=$PUBLIC
You can’t perform that action at this time.
0 commit comments