Dean Troyer | 4a43b7b | 2012-08-28 17:43:40 -0500 | [diff] [blame] | 1 | # stackrc |
| 2 | # |
Dean Troyer | 0bd2410 | 2012-03-08 00:33:54 -0600 | [diff] [blame] | 3 | # Find the other rc files |
Peter Feiner | 388e36c | 2013-10-24 18:51:44 -0400 | [diff] [blame] | 4 | RC_DIR=$(cd $(dirname "${BASH_SOURCE:-$0}") && pwd) |
Dean Troyer | 0bd2410 | 2012-03-08 00:33:54 -0600 | [diff] [blame] | 5 | |
Dean Troyer | 1214d9d | 2012-07-06 09:39:07 -0500 | [diff] [blame] | 6 | # Destination path for installation |
| 7 | DEST=/opt/stack |
| 8 | |
Dean Troyer | c83a7e1 | 2012-11-29 11:47:58 -0600 | [diff] [blame] | 9 | # Destination for working data |
| 10 | DATA_DIR=${DEST}/data |
| 11 | |
Dean Troyer | 9fc8792 | 2013-05-22 17:19:06 -0500 | [diff] [blame] | 12 | # Destination for status files |
| 13 | SERVICE_DIR=${DEST}/status |
| 14 | |
Dean Troyer | 74759aa | 2013-01-24 14:19:55 -0600 | [diff] [blame] | 15 | # Determine stack user |
| 16 | if [[ $EUID -eq 0 ]]; then |
| 17 | STACK_USER=stack |
| 18 | else |
| 19 | STACK_USER=$(whoami) |
| 20 | fi |
Attila Fazekas | 91b8d13 | 2013-01-06 22:40:09 +0100 | [diff] [blame] | 21 | |
Chmouel Boudjnah | 8da5656 | 2012-03-09 14:21:40 +0000 | [diff] [blame] | 22 | # Specify which services to launch. These generally correspond to |
Dean Troyer | 4a43b7b | 2012-08-28 17:43:40 -0500 | [diff] [blame] | 23 | # screen tabs. To change the default list, use the ``enable_service`` and |
| 24 | # ``disable_service`` functions in ``localrc``. |
| 25 | # For example, to enable Swift add this to ``localrc``: |
Oleg Bondarev | 1f11f9a | 2013-03-25 05:34:23 -0700 | [diff] [blame] | 26 | # enable_service swift |
Mark McClain | b05c876 | 2013-07-06 23:29:39 -0400 | [diff] [blame] | 27 | # In order to enable Neutron (a single node setup) add the following |
Oleg Bondarev | 1f11f9a | 2013-03-25 05:34:23 -0700 | [diff] [blame] | 28 | # settings in `` localrc``: |
| 29 | # disable_service n-net |
| 30 | # enable_service q-svc |
| 31 | # enable_service q-agt |
| 32 | # enable_service q-dhcp |
| 33 | # enable_service q-l3 |
| 34 | # enable_service q-meta |
Mark McClain | b05c876 | 2013-07-06 23:29:39 -0400 | [diff] [blame] | 35 | # enable_service neutron |
Oleg Bondarev | 1f11f9a | 2013-03-25 05:34:23 -0700 | [diff] [blame] | 36 | # # Optional, to enable tempest configuration as part of devstack |
| 37 | # enable_service tempest |
Sean Dague | a42541a | 2014-02-13 09:39:15 -0500 | [diff] [blame] | 38 | |
| 39 | # core compute (glance / keystone / nova (+ nova-network)) |
| 40 | ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,n-sch,n-novnc,n-xvnc,n-cauth |
| 41 | # cinder |
| 42 | ENABLED_SERVICES+=,c-sch,c-api,c-vol |
| 43 | # heat |
| 44 | ENABLED_SERVICES+=,h-eng,h-api,h-api-cfn,h-api-cw |
| 45 | # dashboard |
| 46 | ENABLED_SERVICES+=,horizon |
| 47 | # additional services |
| 48 | ENABLED_SERVICES+=,rabbit,tempest,mysql |
| 49 | |
Chmouel Boudjnah | 8da5656 | 2012-03-09 14:21:40 +0000 | [diff] [blame] | 50 | |
Dean Troyer | 4237f59 | 2014-01-29 16:22:11 -0600 | [diff] [blame] | 51 | # Tell Tempest which services are available. The default is set here as |
| 52 | # Tempest falls late in the configuration sequence. This differs from |
| 53 | # ``ENABLED_SERVICES`` in that the project names are used here rather than |
| 54 | # the service names, i.e.: TEMPEST_SERVICES="key,glance,nova" |
| 55 | TEMPEST_SERVICES="" |
| 56 | |
Dean Troyer | 67787e6 | 2012-05-02 11:48:15 -0500 | [diff] [blame] | 57 | # Set the default Nova APIs to enable |
Andrew Laski | 6e7e1c9 | 2012-10-31 16:11:37 -0400 | [diff] [blame] | 58 | NOVA_ENABLED_APIS=ec2,osapi_compute,metadata |
Dean Troyer | 67787e6 | 2012-05-02 11:48:15 -0500 | [diff] [blame] | 59 | |
Dean Troyer | 3005e17 | 2013-01-24 14:14:28 -0600 | [diff] [blame] | 60 | # Configure Identity API version: 2.0, 3 |
| 61 | IDENTITY_API_VERSION=2.0 |
| 62 | |
Vishvananda Ishaya | 58e2134 | 2013-02-11 16:48:12 -0800 | [diff] [blame] | 63 | # Whether to use 'dev mode' for screen windows. Dev mode works by |
| 64 | # stuffing text into the screen windows so that a developer can use |
| 65 | # ctrl-c, up-arrow, enter to restart the service. Starting services |
| 66 | # this way is slightly unreliable, and a bit slower, so this can |
Dean Troyer | 681f3fd | 2013-02-27 19:00:39 -0600 | [diff] [blame] | 67 | # be disabled for automated testing by setting this value to False. |
| 68 | USE_SCREEN=True |
Vishvananda Ishaya | 58e2134 | 2013-02-11 16:48:12 -0800 | [diff] [blame] | 69 | |
Maru Newby | a81dcaa | 2013-03-26 00:15:34 -0400 | [diff] [blame] | 70 | # allow local overrides of env variables, including repo config |
Dean Troyer | 893e663 | 2013-09-13 15:05:51 -0500 | [diff] [blame] | 71 | if [[ -f $RC_DIR/localrc ]]; then |
| 72 | # Old-style user-supplied config |
Maru Newby | a81dcaa | 2013-03-26 00:15:34 -0400 | [diff] [blame] | 73 | source $RC_DIR/localrc |
Dean Troyer | 893e663 | 2013-09-13 15:05:51 -0500 | [diff] [blame] | 74 | elif [[ -f $RC_DIR/.localrc.auto ]]; then |
| 75 | # New-style user-supplied config extracted from local.conf |
| 76 | source $RC_DIR/.localrc.auto |
Maru Newby | a81dcaa | 2013-03-26 00:15:34 -0400 | [diff] [blame] | 77 | fi |
| 78 | |
Jeremy Stanley | c4f4734 | 2014-01-25 01:10:31 +0000 | [diff] [blame] | 79 | # This can be used to turn database query logging on and off |
| 80 | # (currently only implemented for MySQL backend) |
| 81 | DATABASE_QUERY_LOGGING=$(trueorfalse True $DATABASE_QUERY_LOGGING) |
Dean Troyer | cc6b443 | 2013-04-08 15:38:03 -0500 | [diff] [blame] | 82 | |
Dean Troyer | 4a43b7b | 2012-08-28 17:43:40 -0500 | [diff] [blame] | 83 | # Repositories |
| 84 | # ------------ |
| 85 | |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 86 | # Base GIT Repo URL |
| 87 | # Another option is http://review.openstack.org/p |
Steve Kowalik | 047cac5 | 2013-11-07 22:36:10 +1100 | [diff] [blame] | 88 | GIT_BASE=${GIT_BASE:-git://git.openstack.org} |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 89 | |
John H. Tran | 9336164 | 2012-07-26 11:22:05 -0700 | [diff] [blame] | 90 | # metering service |
Maru Newby | a81dcaa | 2013-03-26 00:15:34 -0400 | [diff] [blame] | 91 | CEILOMETER_REPO=${CEILOMETER_REPO:-${GIT_BASE}/openstack/ceilometer.git} |
| 92 | CEILOMETER_BRANCH=${CEILOMETER_BRANCH:-master} |
John H. Tran | 9336164 | 2012-07-26 11:22:05 -0700 | [diff] [blame] | 93 | |
Yunhong, Jiang | e583d9b | 2013-01-09 09:33:07 +0800 | [diff] [blame] | 94 | # ceilometer client library |
Maru Newby | a81dcaa | 2013-03-26 00:15:34 -0400 | [diff] [blame] | 95 | CEILOMETERCLIENT_REPO=${CEILOMETERCLIENT_REPO:-${GIT_BASE}/openstack/python-ceilometerclient.git} |
| 96 | CEILOMETERCLIENT_BRANCH=${CEILOMETERCLIENT_BRANCH:-master} |
Yunhong, Jiang | e583d9b | 2013-01-09 09:33:07 +0800 | [diff] [blame] | 97 | |
Dean Troyer | 67787e6 | 2012-05-02 11:48:15 -0500 | [diff] [blame] | 98 | # volume service |
Maru Newby | a81dcaa | 2013-03-26 00:15:34 -0400 | [diff] [blame] | 99 | CINDER_REPO=${CINDER_REPO:-${GIT_BASE}/openstack/cinder.git} |
| 100 | CINDER_BRANCH=${CINDER_BRANCH:-master} |
Dean Troyer | 67787e6 | 2012-05-02 11:48:15 -0500 | [diff] [blame] | 101 | |
| 102 | # volume client |
Maru Newby | a81dcaa | 2013-03-26 00:15:34 -0400 | [diff] [blame] | 103 | CINDERCLIENT_REPO=${CINDERCLIENT_REPO:-${GIT_BASE}/openstack/python-cinderclient.git} |
| 104 | CINDERCLIENT_BRANCH=${CINDERCLIENT_BRANCH:-master} |
Dean Troyer | 67787e6 | 2012-05-02 11:48:15 -0500 | [diff] [blame] | 105 | |
Dean Troyer | 1a6d449 | 2013-06-03 16:47:36 -0500 | [diff] [blame] | 106 | # image catalog service |
| 107 | GLANCE_REPO=${GLANCE_REPO:-${GIT_BASE}/openstack/glance.git} |
| 108 | GLANCE_BRANCH=${GLANCE_BRANCH:-master} |
| 109 | |
| 110 | # python glance client library |
| 111 | GLANCECLIENT_REPO=${GLANCECLIENT_REPO:-${GIT_BASE}/openstack/python-glanceclient.git} |
| 112 | GLANCECLIENT_BRANCH=${GLANCECLIENT_BRANCH:-master} |
| 113 | |
| 114 | # heat service |
| 115 | HEAT_REPO=${HEAT_REPO:-${GIT_BASE}/openstack/heat.git} |
| 116 | HEAT_BRANCH=${HEAT_BRANCH:-master} |
| 117 | |
| 118 | # python heat client library |
| 119 | HEATCLIENT_REPO=${HEATCLIENT_REPO:-${GIT_BASE}/openstack/python-heatclient.git} |
| 120 | HEATCLIENT_BRANCH=${HEATCLIENT_BRANCH:-master} |
| 121 | |
| 122 | # django powered web control panel for openstack |
| 123 | HORIZON_REPO=${HORIZON_REPO:-${GIT_BASE}/openstack/horizon.git} |
| 124 | HORIZON_BRANCH=${HORIZON_BRANCH:-master} |
| 125 | |
Roman Prykhodchenko | ce696b6 | 2013-08-09 10:40:45 +0300 | [diff] [blame] | 126 | # baremetal provisionint service |
| 127 | IRONIC_REPO=${IRONIC_REPO:-${GIT_BASE}/openstack/ironic.git} |
| 128 | IRONIC_BRANCH=${IRONIC_BRANCH:-master} |
| 129 | |
Roman Prykhodchenko | 43e0066 | 2013-10-15 17:03:15 +0300 | [diff] [blame] | 130 | # ironic client |
| 131 | IRONICCLIENT_REPO=${IRONICCLIENT_REPO:-${GIT_BASE}/openstack/python-ironicclient.git} |
| 132 | IRONICCLIENT_BRANCH=${IRONICCLIENT_BRANCH:-master} |
| 133 | |
Dean Troyer | 1a6d449 | 2013-06-03 16:47:36 -0500 | [diff] [blame] | 134 | # unified auth system (manages accounts/tokens) |
| 135 | KEYSTONE_REPO=${KEYSTONE_REPO:-${GIT_BASE}/openstack/keystone.git} |
| 136 | KEYSTONE_BRANCH=${KEYSTONE_BRANCH:-master} |
| 137 | |
| 138 | # python keystone client library to nova that horizon uses |
| 139 | KEYSTONECLIENT_REPO=${KEYSTONECLIENT_REPO:-${GIT_BASE}/openstack/python-keystoneclient.git} |
| 140 | KEYSTONECLIENT_BRANCH=${KEYSTONECLIENT_BRANCH:-master} |
| 141 | |
Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 142 | # compute service |
Maru Newby | a81dcaa | 2013-03-26 00:15:34 -0400 | [diff] [blame] | 143 | NOVA_REPO=${NOVA_REPO:-${GIT_BASE}/openstack/nova.git} |
| 144 | NOVA_BRANCH=${NOVA_BRANCH:-master} |
Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 145 | |
Dean Troyer | 1a6d449 | 2013-06-03 16:47:36 -0500 | [diff] [blame] | 146 | # python client library to nova that horizon (and others) use |
| 147 | NOVACLIENT_REPO=${NOVACLIENT_REPO:-${GIT_BASE}/openstack/python-novaclient.git} |
| 148 | NOVACLIENT_BRANCH=${NOVACLIENT_BRANCH:-master} |
| 149 | |
| 150 | # consolidated openstack python client |
| 151 | OPENSTACKCLIENT_REPO=${OPENSTACKCLIENT_REPO:-${GIT_BASE}/openstack/python-openstackclient.git} |
| 152 | OPENSTACKCLIENT_BRANCH=${OPENSTACKCLIENT_BRANCH:-master} |
| 153 | |
Doug Hellmann | 6b1cb10 | 2014-02-10 09:59:43 -0800 | [diff] [blame] | 154 | # cliff command line framework |
| 155 | CLIFF_REPO=${CLIFF_REPO:-${GIT_BASE}/openstack/cliff.git} |
| 156 | CLIFF_BRANCH=${CLIFF_BRANCH:-master} |
| 157 | |
Sean Dague | 1b6b531 | 2013-07-31 06:46:34 -0400 | [diff] [blame] | 158 | # oslo.config |
| 159 | OSLOCFG_REPO=${OSLOCFG_REPO:-${GIT_BASE}/openstack/oslo.config.git} |
| 160 | OSLOCFG_BRANCH=${OSLOCFG_BRANCH:-master} |
| 161 | |
| 162 | # oslo.messaging |
| 163 | OSLOMSG_REPO=${OSLOMSG_REPO:-${GIT_BASE}/openstack/oslo.messaging.git} |
| 164 | OSLOMSG_BRANCH=${OSLOMSG_BRANCH:-master} |
| 165 | |
Thierry Carrez | 0915e0c | 2014-01-02 15:05:41 +0100 | [diff] [blame] | 166 | # oslo.rootwrap |
| 167 | OSLORWRAP_REPO=${OSLORWRAP_REPO:-${GIT_BASE}/openstack/oslo.rootwrap.git} |
| 168 | OSLORWRAP_BRANCH=${OSLORWRAP_BRANCH:-master} |
| 169 | |
Davanum Srinivas | f5aa05c | 2014-02-21 22:03:59 -0500 | [diff] [blame^] | 170 | # oslo.vmware |
| 171 | OSLOVMWARE_REPO=${OSLOVMWARE_REPO:-${GIT_BASE}/openstack/oslo.vmware.git} |
| 172 | OSLOVMWARE_BRANCH=${OSLOVMWARE_BRANCH:-master} |
| 173 | |
Doug Hellmann | 6b1cb10 | 2014-02-10 09:59:43 -0800 | [diff] [blame] | 174 | # pycadf auditing library |
| 175 | PYCADF_REPO=${PYCADF_REPO:-${GIT_BASE}/openstack/pycadf.git} |
| 176 | PYCADF_BRANCH=${PYCADF_BRANCH:-master} |
| 177 | |
| 178 | # stevedore plugin manager |
| 179 | STEVEDORE_REPO=${STEVEDORE_REPO:-${GIT_BASE}/openstack/stevedore.git} |
| 180 | STEVEDORE_BRANCH=${STEVEDORE_BRANCH:-master} |
| 181 | |
| 182 | # taskflow plugin manager |
| 183 | TASKFLOW_REPO=${TASKFLOW_REPO:-${GIT_BASE}/openstack/taskflow.git} |
| 184 | TASKFLOW_BRANCH=${TASKFLOW_BRANCH:-master} |
| 185 | |
Dean Troyer | 1a6d449 | 2013-06-03 16:47:36 -0500 | [diff] [blame] | 186 | # pbr drives the setuptools configs |
| 187 | PBR_REPO=${PBR_REPO:-${GIT_BASE}/openstack-dev/pbr.git} |
| 188 | PBR_BRANCH=${PBR_BRANCH:-master} |
| 189 | |
Mark McClain | b05c876 | 2013-07-06 23:29:39 -0400 | [diff] [blame] | 190 | # neutron service |
| 191 | NEUTRON_REPO=${NEUTRON_REPO:-${GIT_BASE}/openstack/neutron.git} |
| 192 | NEUTRON_BRANCH=${NEUTRON_BRANCH:-master} |
Dean Troyer | 1a6d449 | 2013-06-03 16:47:36 -0500 | [diff] [blame] | 193 | |
Mark McClain | b05c876 | 2013-07-06 23:29:39 -0400 | [diff] [blame] | 194 | # neutron client |
| 195 | NEUTRONCLIENT_REPO=${NEUTRONCLIENT_REPO:-${GIT_BASE}/openstack/python-neutronclient.git} |
| 196 | NEUTRONCLIENT_BRANCH=${NEUTRONCLIENT_BRANCH:-master} |
Dean Troyer | 1a6d449 | 2013-06-03 16:47:36 -0500 | [diff] [blame] | 197 | |
Sean Dague | 0392a10 | 2013-07-31 13:07:45 -0400 | [diff] [blame] | 198 | # consolidated openstack requirements |
| 199 | REQUIREMENTS_REPO=${REQUIREMENTS_REPO:-${GIT_BASE}/openstack/requirements.git} |
| 200 | REQUIREMENTS_BRANCH=${REQUIREMENTS_BRANCH:-master} |
| 201 | |
Chmouel Boudjnah | 28fa4e8 | 2011-11-01 12:30:55 +0100 | [diff] [blame] | 202 | # storage service |
Maru Newby | a81dcaa | 2013-03-26 00:15:34 -0400 | [diff] [blame] | 203 | SWIFT_REPO=${SWIFT_REPO:-${GIT_BASE}/openstack/swift.git} |
| 204 | SWIFT_BRANCH=${SWIFT_BRANCH:-master} |
Chmouel Boudjnah | 864902e | 2014-02-03 21:00:39 +0000 | [diff] [blame] | 205 | SWIFT3_REPO=${SWIFT3_REPO:-http://github.com/fujita/swift3.git} |
Maru Newby | a81dcaa | 2013-03-26 00:15:34 -0400 | [diff] [blame] | 206 | SWIFT3_BRANCH=${SWIFT3_BRANCH:-master} |
Joe Gordon | 42b1aa9 | 2012-05-24 14:11:01 -0700 | [diff] [blame] | 207 | |
Chmouel Boudjnah | fda9df8 | 2012-05-22 10:27:08 +0000 | [diff] [blame] | 208 | # python swift client library |
Maru Newby | a81dcaa | 2013-03-26 00:15:34 -0400 | [diff] [blame] | 209 | SWIFTCLIENT_REPO=${SWIFTCLIENT_REPO:-${GIT_BASE}/openstack/python-swiftclient.git} |
| 210 | SWIFTCLIENT_BRANCH=${SWIFTCLIENT_BRANCH:-master} |
Chmouel Boudjnah | fda9df8 | 2012-05-22 10:27:08 +0000 | [diff] [blame] | 211 | |
Dean Troyer | 608bb12 | 2012-01-10 14:43:17 -0600 | [diff] [blame] | 212 | # Tempest test suite |
Maru Newby | a81dcaa | 2013-03-26 00:15:34 -0400 | [diff] [blame] | 213 | TEMPEST_REPO=${TEMPEST_REPO:-${GIT_BASE}/openstack/tempest.git} |
| 214 | TEMPEST_BRANCH=${TEMPEST_BRANCH:-master} |
Dean Troyer | b0e57cf | 2011-11-04 12:13:43 -0500 | [diff] [blame] | 215 | |
Yoshihiro Kaneko | 602cf9b | 2012-07-23 06:27:36 +0000 | [diff] [blame] | 216 | |
Devananda van der Veen | f35cf91 | 2012-11-12 17:58:38 -0800 | [diff] [blame] | 217 | # diskimage-builder |
Arata Notsu | b7fcf3f | 2013-10-10 17:56:21 +0900 | [diff] [blame] | 218 | BM_IMAGE_BUILD_REPO=${BM_IMAGE_BUILD_REPO:-${GIT_BASE}/openstack/diskimage-builder.git} |
Maru Newby | a81dcaa | 2013-03-26 00:15:34 -0400 | [diff] [blame] | 219 | BM_IMAGE_BUILD_BRANCH=${BM_IMAGE_BUILD_BRANCH:-master} |
Devananda van der Veen | f35cf91 | 2012-11-12 17:58:38 -0800 | [diff] [blame] | 220 | |
Devananda van der Veen | 7611c89 | 2012-11-23 10:54:54 -0800 | [diff] [blame] | 221 | # bm_poseur |
| 222 | # Used to simulate a hardware environment for baremetal |
| 223 | # Only used if BM_USE_FAKE_ENV is set |
Maru Newby | a81dcaa | 2013-03-26 00:15:34 -0400 | [diff] [blame] | 224 | BM_POSEUR_REPO=${BM_POSEUR_REPO:-${GIT_BASE}/tripleo/bm_poseur.git} |
| 225 | BM_POSEUR_BRANCH=${BM_POSEUR_BRANCH:-master} |
Devananda van der Veen | 7611c89 | 2012-11-23 10:54:54 -0800 | [diff] [blame] | 226 | |
Dean Troyer | 1a6d449 | 2013-06-03 16:47:36 -0500 | [diff] [blame] | 227 | # a websockets/html5 or flash powered VNC console for vm instances |
Ana Krivokapic | 1bbb0ca | 2013-12-04 15:25:45 +0100 | [diff] [blame] | 228 | NOVNC_REPO=${NOVNC_REPO:-https://github.com/kanaka/noVNC.git} |
Dean Troyer | 1a6d449 | 2013-06-03 16:47:36 -0500 | [diff] [blame] | 229 | NOVNC_BRANCH=${NOVNC_BRANCH:-master} |
| 230 | |
| 231 | # ryu service |
Steve Kowalik | 047cac5 | 2013-11-07 22:36:10 +1100 | [diff] [blame] | 232 | RYU_REPO=${RYU_REPO:-https://github.com/osrg/ryu.git} |
Dean Troyer | 1a6d449 | 2013-06-03 16:47:36 -0500 | [diff] [blame] | 233 | RYU_BRANCH=${RYU_BRANCH:-master} |
| 234 | |
| 235 | # a websockets/html5 or flash powered SPICE console for vm instances |
| 236 | SPICE_REPO=${SPICE_REPO:-http://anongit.freedesktop.org/git/spice/spice-html5.git} |
| 237 | SPICE_BRANCH=${SPICE_BRANCH:-master} |
| 238 | |
Nikhil Manchanda | 0cccad4 | 2012-12-03 18:15:09 -0700 | [diff] [blame] | 239 | # trove service |
| 240 | TROVE_REPO=${TROVE_REPO:-${GIT_BASE}/openstack/trove.git} |
| 241 | TROVE_BRANCH=${TROVE_BRANCH:-master} |
| 242 | |
| 243 | # trove client library test |
| 244 | TROVECLIENT_REPO=${TROVECLIENT_REPO:-${GIT_BASE}/openstack/python-troveclient.git} |
| 245 | TROVECLIENT_BRANCH=${TROVECLIENT_BRANCH:-master} |
Monty Taylor | 5e15949 | 2013-05-08 14:29:52 -0400 | [diff] [blame] | 246 | |
Sean Dague | 6832272 | 2013-10-21 18:11:40 -0400 | [diff] [blame] | 247 | # stackforge libraries that are used by OpenStack core services |
| 248 | # wsme |
| 249 | WSME_REPO=${WSME_REPO:-${GIT_BASE}/stackforge/wsme.git} |
| 250 | WSME_BRANCH=${WSME_BRANCH:-master} |
| 251 | |
| 252 | # pecan |
| 253 | PECAN_REPO=${PECAN_REPO:-${GIT_BASE}/stackforge/pecan.git} |
| 254 | PECAN_BRANCH=${PECAN_BRANCH:-master} |
| 255 | |
| 256 | |
Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 257 | # Nova hypervisor configuration. We default to libvirt with **kvm** but will |
| 258 | # drop back to **qemu** if we are unable to load the kvm module. ``stack.sh`` can |
Bob Ball | 32e1603 | 2013-07-29 15:51:43 +0100 | [diff] [blame] | 259 | # also install an **LXC**, **OpenVZ** or **XenAPI** based system. If xenserver-core |
| 260 | # is installed, the default will be XenAPI |
| 261 | DEFAULT_VIRT_DRIVER=libvirt |
| 262 | is_package_installed xenserver-core && DEFAULT_VIRT_DRIVER=xenserver |
| 263 | VIRT_DRIVER=${VIRT_DRIVER:-$DEFAULT_VIRT_DRIVER} |
Bob Ball | 337bd81 | 2013-05-16 14:27:01 +0100 | [diff] [blame] | 264 | case "$VIRT_DRIVER" in |
| 265 | libvirt) |
| 266 | LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm} |
| 267 | if [[ "$os_VENDOR" =~ (Debian) ]]; then |
| 268 | LIBVIRT_GROUP=libvirt |
| 269 | else |
| 270 | LIBVIRT_GROUP=libvirtd |
| 271 | fi |
| 272 | ;; |
Joe Gordon | 2c94ee5 | 2013-08-02 02:02:01 +0000 | [diff] [blame] | 273 | fake) |
| 274 | NUMBER_FAKE_NOVA_COMPUTE=${NUMBER_FAKE_NOVA_COMPUTE:-1} |
| 275 | ;; |
Bob Ball | 337bd81 | 2013-05-16 14:27:01 +0100 | [diff] [blame] | 276 | xenserver) |
Mark McClain | b05c876 | 2013-07-06 23:29:39 -0400 | [diff] [blame] | 277 | # Xen config common to nova and neutron |
Bob Ball | 337bd81 | 2013-05-16 14:27:01 +0100 | [diff] [blame] | 278 | XENAPI_USER=${XENAPI_USER:-"root"} |
Mate Lakat | d15c8a0 | 2014-02-04 12:38:14 +0000 | [diff] [blame] | 279 | # This user will be used for dom0 - domU communication |
| 280 | # should be able to log in to dom0 without a password |
| 281 | # will be used to install the plugins |
| 282 | DOMZERO_USER=${DOMZERO_USER:-"domzero"} |
Bob Ball | 337bd81 | 2013-05-16 14:27:01 +0100 | [diff] [blame] | 283 | ;; |
| 284 | *) |
| 285 | ;; |
| 286 | esac |
Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 287 | |
Dean Troyer | 1a6d449 | 2013-06-03 16:47:36 -0500 | [diff] [blame] | 288 | |
| 289 | # Images |
| 290 | # ------ |
| 291 | |
| 292 | # Specify a comma-separated list of images to download and install into glance. |
| 293 | # Supported urls here are: |
Scott Moser | 4f6d7b6 | 2011-12-08 16:22:51 -0500 | [diff] [blame] | 294 | # * "uec-style" images: |
| 295 | # If the file ends in .tar.gz, uncompress the tarball and and select the first |
| 296 | # .img file inside it as the image. If present, use "*-vmlinuz*" as the kernel |
| 297 | # and "*-initrd*" as the ramdisk |
Dean Troyer | 1a6d449 | 2013-06-03 16:47:36 -0500 | [diff] [blame] | 298 | # example: http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-server-cloudimg-amd64.tar.gz |
Scott Moser | 4f6d7b6 | 2011-12-08 16:22:51 -0500 | [diff] [blame] | 299 | # * disk image (*.img,*.img.gz) |
| 300 | # if file ends in .img, then it will be uploaded and registered as a to |
| 301 | # glance as a disk image. If it ends in .gz, it is uncompressed first. |
Jason Kölker | 64a9066 | 2012-01-23 11:17:27 -0600 | [diff] [blame] | 302 | # example: |
Dean Troyer | 1a6d449 | 2013-06-03 16:47:36 -0500 | [diff] [blame] | 303 | # http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-server-cloudimg-armel-disk1.img |
Scott Moser | cde655a | 2013-02-20 12:33:39 -0500 | [diff] [blame] | 304 | # http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-rootfs.img.gz |
Dean Troyer | 4a43b7b | 2012-08-28 17:43:40 -0500 | [diff] [blame] | 305 | # * OpenVZ image: |
| 306 | # OpenVZ uses its own format of image, and does not support UEC style images |
| 307 | |
Scott Moser | 3584e55 | 2011-12-08 16:23:27 -0500 | [diff] [blame] | 308 | #IMAGE_URLS="http://smoser.brickies.net/ubuntu/ttylinux-uec/ttylinux-uec-amd64-11.2_2.6.35-15_1.tar.gz" # old ttylinux-uec image |
Scott Moser | cde655a | 2013-02-20 12:33:39 -0500 | [diff] [blame] | 309 | #IMAGE_URLS="http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img" # cirros full disk image |
Dean Troyer | 4a43b7b | 2012-08-28 17:43:40 -0500 | [diff] [blame] | 310 | |
| 311 | # Set default image based on ``VIRT_DRIVER`` and ``LIBVIRT_TYPE``, either of |
Nachi Ueno | fda946e | 2012-10-24 17:26:02 -0700 | [diff] [blame] | 312 | # which may be set in ``localrc``. Also allow ``DEFAULT_IMAGE_NAME`` and |
Dean Troyer | 4a43b7b | 2012-08-28 17:43:40 -0500 | [diff] [blame] | 313 | # ``IMAGE_URLS`` to be set directly in ``localrc``. |
Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 314 | case "$VIRT_DRIVER" in |
Nachi Ueno | fda946e | 2012-10-24 17:26:02 -0700 | [diff] [blame] | 315 | openvz) |
Monty Taylor | a49ee32 | 2013-07-27 15:36:53 -0400 | [diff] [blame] | 316 | DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-ubuntu-12.04-x86_64} |
Monty Taylor | a8ca815 | 2013-07-31 13:12:30 -0400 | [diff] [blame] | 317 | IMAGE_URLS=${IMAGE_URLS:-"http://download.openvz.org/template/precreated/ubuntu-12.04-x86_64.tar.gz"};; |
Eric Windisch | 3f918a4 | 2014-02-11 11:47:47 -0700 | [diff] [blame] | 318 | docker) |
| 319 | DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros} |
| 320 | IMAGE_URLS=${IMAGE_URLS:-};; |
Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 321 | libvirt) |
| 322 | case "$LIBVIRT_TYPE" in |
| 323 | lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc |
Scott Moser | cde655a | 2013-02-20 12:33:39 -0500 | [diff] [blame] | 324 | DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-rootfs} |
| 325 | IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-rootfs.img.gz"};; |
Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 326 | *) # otherwise, use the uec style image (with kernel, ramdisk, disk) |
Scott Moser | cde655a | 2013-02-20 12:33:39 -0500 | [diff] [blame] | 327 | DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-uec} |
| 328 | IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};; |
Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 329 | esac |
| 330 | ;; |
hartsocks | a418af9 | 2013-04-24 14:49:56 -0700 | [diff] [blame] | 331 | vsphere) |
Sreeram Yerrapragada | cbaff86 | 2013-07-24 19:49:23 -0700 | [diff] [blame] | 332 | DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-debian-2.6.32-i686} |
| 333 | IMAGE_URLS=${IMAGE_URLS:-"http://partnerweb.vmware.com/programs/vmdkimage/debian-2.6.32-i686.vmdk"};; |
Mate Lakat | c75c78a | 2014-01-21 15:01:01 +0000 | [diff] [blame] | 334 | xenserver) |
| 335 | DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-disk} |
| 336 | IMAGE_URLS=${IMAGE_URLS:-"https://github.com/downloads/citrix-openstack/warehouse/cirros-0.3.0-x86_64-disk.vhd.tgz"};; |
Dean Troyer | 1a6d449 | 2013-06-03 16:47:36 -0500 | [diff] [blame] | 337 | *) # Default to Cirros with kernel, ramdisk and disk image |
Scott Moser | cde655a | 2013-02-20 12:33:39 -0500 | [diff] [blame] | 338 | DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-uec} |
| 339 | IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};; |
Scott Moser | a368218 | 2011-12-16 10:29:10 -0500 | [diff] [blame] | 340 | esac |
Anthony Young | 0ab1d46 | 2011-10-13 23:03:23 -0700 | [diff] [blame] | 341 | |
Bob Ball | cff1c7d | 2013-12-18 13:20:40 +0000 | [diff] [blame] | 342 | HEAT_FETCHED_TEST_IMAGE=${HEAT_FETCHED_TEST_IMAGE:-""} |
Steve Baker | 8c1b95e | 2013-12-16 11:04:03 +1300 | [diff] [blame] | 343 | if [[ "$HEAT_FETCHED_TEST_IMAGE" == "Fedora-i386-20-20131211.1-sda" ]]; then |
Steve Baker | af72b68 | 2013-12-20 08:39:12 +1300 | [diff] [blame] | 344 | IMAGE_URLS+=",https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/i386/$HEAT_FETCHED_TEST_IMAGE.qcow2" |
Steve Baker | 8c1b95e | 2013-12-16 11:04:03 +1300 | [diff] [blame] | 345 | fi |
Dean Troyer | 1a6d449 | 2013-06-03 16:47:36 -0500 | [diff] [blame] | 346 | |
Matthew Treinish | 4c03034 | 2013-06-20 17:02:44 -0400 | [diff] [blame] | 347 | # 10Gb default volume backing file size |
| 348 | VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-10250M} |
Nachi Ueno | fda946e | 2012-10-24 17:26:02 -0700 | [diff] [blame] | 349 | |
Dean Troyer | b323691 | 2013-03-17 15:17:05 -0500 | [diff] [blame] | 350 | # Name of the LVM volume group to use/create for iscsi volumes |
| 351 | VOLUME_GROUP=${VOLUME_GROUP:-stack-volumes} |
| 352 | VOLUME_NAME_PREFIX=${VOLUME_NAME_PREFIX:-volume-} |
| 353 | INSTANCE_NAME_PREFIX=${INSTANCE_NAME_PREFIX:-instance-} |
| 354 | |
Dean Troyer | b7490da | 2013-03-18 16:07:56 -0500 | [diff] [blame] | 355 | # Set default port for nova-objectstore |
| 356 | S3_SERVICE_PORT=${S3_SERVICE_PORT:-3333} |
| 357 | |
| 358 | # Common network names |
Nachi Ueno | fda946e | 2012-10-24 17:26:02 -0700 | [diff] [blame] | 359 | PRIVATE_NETWORK_NAME=${PRIVATE_NETWORK_NAME:-"private"} |
Aaron Rosen | 640f1e4 | 2013-03-26 16:52:53 -0700 | [diff] [blame] | 360 | PUBLIC_NETWORK_NAME=${PUBLIC_NETWORK_NAME:-"public"} |
Dean Troyer | 681f3fd | 2013-02-27 19:00:39 -0600 | [diff] [blame] | 361 | |
| 362 | # Compatibility until it's eradicated from CI |
| 363 | USE_SCREEN=${SCREEN_DEV:-$USE_SCREEN} |
Sean Dague | 584d90e | 2013-03-29 14:34:53 -0400 | [diff] [blame] | 364 | |
Jiajun Liu | f02be85 | 2013-05-22 08:55:25 +0000 | [diff] [blame] | 365 | # Set default screen name |
| 366 | SCREEN_NAME=${SCREEN_NAME:-stack} |
| 367 | |
Christian Berendt | 71d5630 | 2013-07-22 11:37:42 +0200 | [diff] [blame] | 368 | # Do not install packages tagged with 'testonly' by default |
| 369 | INSTALL_TESTONLY_PACKAGES=${INSTALL_TESTONLY_PACKAGES:-False} |
| 370 | |
Sean Dague | fd98edb | 2013-10-24 14:57:59 -0400 | [diff] [blame] | 371 | # Undo requirements changes by global requirements |
| 372 | UNDO_REQUIREMENTS=${UNDO_REQUIREMENTS:-True} |
| 373 | |
Sean Dague | 584d90e | 2013-03-29 14:34:53 -0400 | [diff] [blame] | 374 | # Local variables: |
| 375 | # mode: shell-script |
| 376 | # End: |