File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 15
15
16
16
export DEBIAN_FRONTEND=noninteractive
17
17
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/' )
19
21
export GLANCE_HOST=${CONTROLLER_HOST}
20
22
export MYSQL_HOST=${CONTROLLER_HOST}
21
23
export 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 --
163
163
164
164
# Cinder Block Storage Service
165
165
CINDER_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/' )
167
169
PUBLIC=" http://$CINDER_ENDPOINT :8776/v1/%(tenant_id)s"
168
170
ADMIN=$PUBLIC
169
171
INTERNAL=$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 --
159
159
160
160
# Cinder Block Storage Service
161
161
CINDER_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/' )
163
165
PUBLIC=" http://$CINDER_ENDPOINT :8776/v1/%(tenant_id)s"
164
166
ADMIN=$PUBLIC
165
167
INTERNAL=$PUBLIC
You can’t perform that action at this time.
0 commit comments