* Offline use of devstack previously required defining individual
repo overrides. This change maintains support for individual
overrides while adding the ability to override GIT_BASE.
Change-Id: I4ca8b8e69c0fb05a7c9cf2fd4643eac2f7643aa9
... | ... |
@@ -44,112 +44,117 @@ NOVA_ENABLED_APIS=ec2,osapi_compute,metadata |
44 | 44 |
# be disabled for automated testing by setting this value to False. |
45 | 45 |
USE_SCREEN=True |
46 | 46 |
|
47 |
+# allow local overrides of env variables, including repo config |
|
48 |
+if [ -f $RC_DIR/localrc ]; then |
|
49 |
+ source $RC_DIR/localrc |
|
50 |
+fi |
|
51 |
+ |
|
47 | 52 |
# Repositories |
48 | 53 |
# ------------ |
49 | 54 |
|
50 | 55 |
# Base GIT Repo URL |
51 | 56 |
# Another option is http://review.openstack.org/p |
52 |
-GIT_BASE=https://github.com |
|
57 |
+GIT_BASE=${GIT_BASE:-https://github.com} |
|
53 | 58 |
|
54 | 59 |
# metering service |
55 |
-CEILOMETER_REPO=${GIT_BASE}/openstack/ceilometer.git |
|
56 |
-CEILOMETER_BRANCH=master |
|
60 |
+CEILOMETER_REPO=${CEILOMETER_REPO:-${GIT_BASE}/openstack/ceilometer.git} |
|
61 |
+CEILOMETER_BRANCH=${CEILOMETER_BRANCH:-master} |
|
57 | 62 |
|
58 | 63 |
# ceilometer client library |
59 |
-CEILOMETERCLIENT_REPO=${GIT_BASE}/openstack/python-ceilometerclient.git |
|
60 |
-CEILOMETERCLIENT_BRANCH=master |
|
64 |
+CEILOMETERCLIENT_REPO=${CEILOMETERCLIENT_REPO:-${GIT_BASE}/openstack/python-ceilometerclient.git} |
|
65 |
+CEILOMETERCLIENT_BRANCH=${CEILOMETERCLIENT_BRANCH:-master} |
|
61 | 66 |
|
62 | 67 |
# volume service |
63 |
-CINDER_REPO=${GIT_BASE}/openstack/cinder.git |
|
64 |
-CINDER_BRANCH=master |
|
68 |
+CINDER_REPO=${CINDER_REPO:-${GIT_BASE}/openstack/cinder.git} |
|
69 |
+CINDER_BRANCH=${CINDER_BRANCH:-master} |
|
65 | 70 |
|
66 | 71 |
# volume client |
67 |
-CINDERCLIENT_REPO=${GIT_BASE}/openstack/python-cinderclient.git |
|
68 |
-CINDERCLIENT_BRANCH=master |
|
72 |
+CINDERCLIENT_REPO=${CINDERCLIENT_REPO:-${GIT_BASE}/openstack/python-cinderclient.git} |
|
73 |
+CINDERCLIENT_BRANCH=${CINDERCLIENT_BRANCH:-master} |
|
69 | 74 |
|
70 | 75 |
# compute service |
71 |
-NOVA_REPO=${GIT_BASE}/openstack/nova.git |
|
72 |
-NOVA_BRANCH=master |
|
76 |
+NOVA_REPO=${NOVA_REPO:-${GIT_BASE}/openstack/nova.git} |
|
77 |
+NOVA_BRANCH=${NOVA_BRANCH:-master} |
|
73 | 78 |
|
74 | 79 |
# storage service |
75 |
-SWIFT_REPO=${GIT_BASE}/openstack/swift.git |
|
76 |
-SWIFT_BRANCH=master |
|
77 |
-SWIFT3_REPO=${GIT_BASE}/fujita/swift3.git |
|
78 |
-SWIFT3_BRANCH=master |
|
80 |
+SWIFT_REPO=${SWIFT_REPO:-${GIT_BASE}/openstack/swift.git} |
|
81 |
+SWIFT_BRANCH=${SWIFT_BRANCH:-master} |
|
82 |
+SWIFT3_REPO=${SWIFT3_REPO:-${GIT_BASE}/fujita/swift3.git} |
|
83 |
+SWIFT3_BRANCH=${SWIFT3_BRANCH:-master} |
|
79 | 84 |
|
80 | 85 |
# python swift client library |
81 |
-SWIFTCLIENT_REPO=${GIT_BASE}/openstack/python-swiftclient.git |
|
82 |
-SWIFTCLIENT_BRANCH=master |
|
86 |
+SWIFTCLIENT_REPO=${SWIFTCLIENT_REPO:-${GIT_BASE}/openstack/python-swiftclient.git} |
|
87 |
+SWIFTCLIENT_BRANCH=${SWIFTCLIENT_BRANCH:-master} |
|
83 | 88 |
|
84 | 89 |
# image catalog service |
85 |
-GLANCE_REPO=${GIT_BASE}/openstack/glance.git |
|
86 |
-GLANCE_BRANCH=master |
|
90 |
+GLANCE_REPO=${GLANCE_REPO:-${GIT_BASE}/openstack/glance.git} |
|
91 |
+GLANCE_BRANCH=${GLANCE_BRANCH:-master} |
|
87 | 92 |
|
88 | 93 |
# python glance client library |
89 |
-GLANCECLIENT_REPO=${GIT_BASE}/openstack/python-glanceclient.git |
|
90 |
-GLANCECLIENT_BRANCH=master |
|
94 |
+GLANCECLIENT_REPO=${GLANCECLIENT_REPO:-${GIT_BASE}/openstack/python-glanceclient.git} |
|
95 |
+GLANCECLIENT_BRANCH=${GLANCECLIENT_BRANCH:-master} |
|
91 | 96 |
|
92 | 97 |
# unified auth system (manages accounts/tokens) |
93 |
-KEYSTONE_REPO=${GIT_BASE}/openstack/keystone.git |
|
94 |
-KEYSTONE_BRANCH=master |
|
98 |
+KEYSTONE_REPO=${KEYSTONE_REPO:-${GIT_BASE}/openstack/keystone.git} |
|
99 |
+KEYSTONE_BRANCH=${KEYSTONE_BRANCH:-master} |
|
95 | 100 |
|
96 | 101 |
# a websockets/html5 or flash powered VNC console for vm instances |
97 |
-NOVNC_REPO=${GIT_BASE}/kanaka/noVNC.git |
|
98 |
-NOVNC_BRANCH=master |
|
102 |
+NOVNC_REPO=${NOVNC_REPO:-${GIT_BASE}/kanaka/noVNC.git} |
|
103 |
+NOVNC_BRANCH=${NOVNC_BRANCH:-master} |
|
99 | 104 |
|
100 | 105 |
# a websockets/html5 or flash powered SPICE console for vm instances |
101 |
-SPICE_REPO=http://anongit.freedesktop.org/git/spice/spice-html5.git |
|
102 |
-SPICE_BRANCH=master |
|
106 |
+SPICE_REPO=${SPICE_REPO:-http://anongit.freedesktop.org/git/spice/spice-html5.git} |
|
107 |
+SPICE_BRANCH=${SPICE_BRANCH:-master} |
|
103 | 108 |
|
104 | 109 |
# django powered web control panel for openstack |
105 |
-HORIZON_REPO=${GIT_BASE}/openstack/horizon.git |
|
106 |
-HORIZON_BRANCH=master |
|
110 |
+HORIZON_REPO=${HORIZON_REPO:-${GIT_BASE}/openstack/horizon.git} |
|
111 |
+HORIZON_BRANCH=${HORIZON_BRANCH:-master} |
|
107 | 112 |
|
108 | 113 |
# python client library to nova that horizon (and others) use |
109 |
-NOVACLIENT_REPO=${GIT_BASE}/openstack/python-novaclient.git |
|
110 |
-NOVACLIENT_BRANCH=master |
|
114 |
+NOVACLIENT_REPO=${NOVACLIENT_REPO:-${GIT_BASE}/openstack/python-novaclient.git} |
|
115 |
+NOVACLIENT_BRANCH=${NOVACLIENT_BRANCH:-master} |
|
111 | 116 |
|
112 | 117 |
# consolidated openstack python client |
113 |
-OPENSTACKCLIENT_REPO=${GIT_BASE}/openstack/python-openstackclient.git |
|
114 |
-OPENSTACKCLIENT_BRANCH=master |
|
118 |
+OPENSTACKCLIENT_REPO=${OPENSTACKCLIENT_REPO:-${GIT_BASE}/openstack/python-openstackclient.git} |
|
119 |
+OPENSTACKCLIENT_BRANCH=${OPENSTACKCLIENT_BRANCH:-master} |
|
115 | 120 |
|
116 | 121 |
# python keystone client library to nova that horizon uses |
117 |
-KEYSTONECLIENT_REPO=${GIT_BASE}/openstack/python-keystoneclient.git |
|
118 |
-KEYSTONECLIENT_BRANCH=master |
|
122 |
+KEYSTONECLIENT_REPO=${KEYSTONECLIENT_REPO:-${GIT_BASE}/openstack/python-keystoneclient.git} |
|
123 |
+KEYSTONECLIENT_BRANCH=${KEYSTONECLIENT_BRANCH:-master} |
|
119 | 124 |
|
120 | 125 |
# quantum service |
121 |
-QUANTUM_REPO=${GIT_BASE}/openstack/quantum.git |
|
122 |
-QUANTUM_BRANCH=master |
|
126 |
+QUANTUM_REPO=${QUANTUM_REPO:-${GIT_BASE}/openstack/quantum.git} |
|
127 |
+QUANTUM_BRANCH=${QUANTUM_BRANCH:-master} |
|
123 | 128 |
|
124 | 129 |
# quantum client |
125 |
-QUANTUMCLIENT_REPO=${GIT_BASE}/openstack/python-quantumclient.git |
|
126 |
-QUANTUMCLIENT_BRANCH=master |
|
130 |
+QUANTUMCLIENT_REPO=${QUANTUMCLIENT_REPO:-${GIT_BASE}/openstack/python-quantumclient.git} |
|
131 |
+QUANTUMCLIENT_BRANCH=${QUANTUMCLIENT_BRANCH:-master} |
|
127 | 132 |
|
128 | 133 |
# Tempest test suite |
129 |
-TEMPEST_REPO=${GIT_BASE}/openstack/tempest.git |
|
130 |
-TEMPEST_BRANCH=master |
|
134 |
+TEMPEST_REPO=${TEMPEST_REPO:-${GIT_BASE}/openstack/tempest.git} |
|
135 |
+TEMPEST_BRANCH=${TEMPEST_BRANCH:-master} |
|
131 | 136 |
|
132 | 137 |
# heat service |
133 |
-HEAT_REPO=${GIT_BASE}/openstack/heat.git |
|
134 |
-HEAT_BRANCH=master |
|
138 |
+HEAT_REPO=${HEAT_REPO:-${GIT_BASE}/openstack/heat.git} |
|
139 |
+HEAT_BRANCH=${HEAT_BRANCH:-master} |
|
135 | 140 |
|
136 | 141 |
# python heat client library |
137 |
-HEATCLIENT_REPO=${GIT_BASE}/openstack/python-heatclient.git |
|
138 |
-HEATCLIENT_BRANCH=master |
|
142 |
+HEATCLIENT_REPO=${HEATCLIENT_REPO:-${GIT_BASE}/openstack/python-heatclient.git} |
|
143 |
+HEATCLIENT_BRANCH=${HEATCLIENT_BRANCH:-master} |
|
139 | 144 |
|
140 | 145 |
# ryu service |
141 |
-RYU_REPO=${GIT_BASE}/osrg/ryu.git |
|
142 |
-RYU_BRANCH=master |
|
146 |
+RYU_REPO=${RYU_REPO:-${GIT_BASE}/osrg/ryu.git} |
|
147 |
+RYU_BRANCH=${RYU_BRANCH:-master} |
|
143 | 148 |
|
144 | 149 |
# diskimage-builder |
145 |
-BM_IMAGE_BUILD_REPO=${GIT_BASE}/stackforge/diskimage-builder.git |
|
146 |
-BM_IMAGE_BUILD_BRANCH=master |
|
150 |
+BM_IMAGE_BUILD_REPO=${BM_IMAGE_BUILD_REPO:-${GIT_BASE}/stackforge/diskimage-builder.git} |
|
151 |
+BM_IMAGE_BUILD_BRANCH=${BM_IMAGE_BUILD_BRANCH:-master} |
|
147 | 152 |
|
148 | 153 |
# bm_poseur |
149 | 154 |
# Used to simulate a hardware environment for baremetal |
150 | 155 |
# Only used if BM_USE_FAKE_ENV is set |
151 |
-BM_POSEUR_REPO=${GIT_BASE}/tripleo/bm_poseur.git |
|
152 |
-BM_POSEUR_BRANCH=master |
|
156 |
+BM_POSEUR_REPO=${BM_POSEUR_REPO:-${GIT_BASE}/tripleo/bm_poseur.git} |
|
157 |
+BM_POSEUR_BRANCH=${BM_POSEUR_BRANCH:-master} |
|
153 | 158 |
|
154 | 159 |
|
155 | 160 |
# Nova hypervisor configuration. We default to libvirt with **kvm** but will |
... | ... |
@@ -158,11 +163,6 @@ BM_POSEUR_BRANCH=master |
158 | 158 |
VIRT_DRIVER=${VIRT_DRIVER:-libvirt} |
159 | 159 |
LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm} |
160 | 160 |
|
161 |
-# allow local overrides of env variables |
|
162 |
-if [ -f $RC_DIR/localrc ]; then |
|
163 |
- source $RC_DIR/localrc |
|
164 |
-fi |
|
165 |
- |
|
166 | 161 |
# Specify a comma-separated list of UEC images to download and install into glance. |
167 | 162 |
# supported urls here are: |
168 | 163 |
# * "uec-style" images: |