stackrc
e263c82e
 #!/bin/bash
 #
4a43b7bd
 # stackrc
 #
0bd2410d
 # Find the other rc files
388e36c9
 RC_DIR=$(cd $(dirname "${BASH_SOURCE:-$0}") && pwd)
0bd2410d
 
0e4cd038
 # Source required devstack functions and globals
 source $RC_DIR/functions
 
1214d9d0
 # Destination path for installation
 DEST=/opt/stack
 
c83a7e12
 # Destination for working data
 DATA_DIR=${DEST}/data
 
9fc8792b
 # Destination for status files
 SERVICE_DIR=${DEST}/status
 
74759aa1
 # Determine stack user
 if [[ $EUID -eq 0 ]]; then
     STACK_USER=stack
 else
     STACK_USER=$(whoami)
 fi
91b8d13e
 
0abde393
 # Specify region name Region
 REGION_NAME=${REGION_NAME:-RegionOne}
 
8da5656f
 # Specify which services to launch.  These generally correspond to
4a43b7bd
 # screen tabs. To change the default list, use the ``enable_service`` and
a79617c1
 # ``disable_service`` functions in ``local.conf``.
 # For example, to enable Swift add this to ``local.conf``:
 #  enable_service s-proxy s-object s-container s-account
c906bb38
 # In order to enable nova-networking add the following settings in
 # `` local.conf ``:
b968b0c3
 #  [[local|localrc]]
c906bb38
 #  disable_service q-svc q-agt q-dhcp q-l3 q-meta
 #  enable_service n-net
1f11f9ac
 #  # Optional, to enable tempest configuration as part of devstack
 #  enable_service tempest
53753293
 function isset {
     local nounset=$(set +o | grep nounset)
     set +o nounset
     [[ -n "${!1+x}" ]]
     result=$?
     $nounset
     return $result
 }
a42541a9
 
fafb62b9
 # this allows us to pass ENABLED_SERVICES
53753293
 if ! isset ENABLED_SERVICES ; then
c906bb38
     # core compute (glance / keystone / nova)
     ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch,n-xvnc,n-cauth
fafb62b9
     # cinder
     ENABLED_SERVICES+=,c-sch,c-api,c-vol
     # heat
     ENABLED_SERVICES+=,h-eng,h-api,h-api-cfn,h-api-cw
     # dashboard
     ENABLED_SERVICES+=,horizon
c906bb38
     # neutron
     ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta
fafb62b9
     # additional services
     ENABLED_SERVICES+=,rabbit,tempest,mysql
 fi
8da5656f
 
cbea3447
 # SQLAlchemy supports multiple database drivers for each database server
 # type. For example, deployer may use MySQLdb, MySQLConnector, or oursql
 # to access MySQL database.
 #
 # When defined, the variable controls which database driver is used to
 # connect to database server. Otherwise using default driver defined for
 # each database type.
 #
 # You can find the list of currently supported drivers for each database
 # type at: http://docs.sqlalchemy.org/en/rel_0_9/core/engines.html
 # SQLALCHEMY_DATABASE_DRIVER="mysqldb"
 
46455a34
 # Global toggle for enabling services under mod_wsgi. If this is set to
 # ``True`` all services that use HTTPD + mod_wsgi as the preferred method of
 # deployment, will be deployed under Apache. If this is set to ``False`` all
 # services will rely on the local toggle variable (e.g. ``KEYSTONE_USE_MOD_WSGI``)
 ENABLE_HTTPD_MOD_WSGI_SERVICES=True
 
4237f590
 # Tell Tempest which services are available.  The default is set here as
 # Tempest falls late in the configuration sequence.  This differs from
 # ``ENABLED_SERVICES`` in that the project names are used here rather than
 # the service names, i.e.: TEMPEST_SERVICES="key,glance,nova"
 TEMPEST_SERVICES=""
 
67787e6b
 # Set the default Nova APIs to enable
6e7e1c94
 NOVA_ENABLED_APIS=ec2,osapi_compute,metadata
67787e6b
 
3005e178
 # Configure Identity API version: 2.0, 3
 IDENTITY_API_VERSION=2.0
 
58e21349
 # Whether to use 'dev mode' for screen windows. Dev mode works by
 # stuffing text into the screen windows so that a developer can use
 # ctrl-c, up-arrow, enter to restart the service. Starting services
 # this way is slightly unreliable, and a bit slower, so this can
681f3fdd
 # be disabled for automated testing by setting this value to False.
 USE_SCREEN=True
58e21349
 
a81dcaa6
 # allow local overrides of env variables, including repo config
893e6636
 if [[ -f $RC_DIR/localrc ]]; then
     # Old-style user-supplied config
a81dcaa6
     source $RC_DIR/localrc
893e6636
 elif [[ -f $RC_DIR/.localrc.auto ]]; then
     # New-style user-supplied config extracted from local.conf
     source $RC_DIR/.localrc.auto
a81dcaa6
 fi
 
c4f47345
 # This can be used to turn database query logging on and off
 # (currently only implemented for MySQL backend)
53753293
 DATABASE_QUERY_LOGGING=$(trueorfalse True DATABASE_QUERY_LOGGING)
cc6b4435
 
d53ad0b0
 # Set a timeout for git operations.  If git is still running when the
 # timeout expires, the command will be retried up to 3 times.  This is
 # in the format for timeout(1);
 #
 #  DURATION is a floating point number with an optional suffix: 's'
 #  for seconds (the default), 'm' for minutes, 'h' for hours or 'd'
 #  for days.
 #
 # Zero disables timeouts
 GIT_TIMEOUT=${GIT_TIMEOUT:-0}
 
def1534c
 # Requirements enforcing mode
 #
 # - strict (default) : ensure all project requirements files match
 #   what's in global requirements.
 #
 # - soft : enforce requirements on everything in
 #   requirements/projects.txt, but do soft updates on all other
 #   repositories (i.e. sync versions for requirements that are in g-r,
 #   but pass through any extras)
 REQUIREMENTS_MODE=${REQUIREMENTS_MODE:-strict}
 
4a43b7bd
 # Repositories
 # ------------
 
d5b18ecb
 # Base GIT Repo URL
3324f19f
 # Another option is https://git.openstack.org
047cac56
 GIT_BASE=${GIT_BASE:-git://git.openstack.org}
d5b18ecb
 
07d7e5b1
 # Which libraries should we install from git instead of using released
 # versions on pypi?
 #
 # By default devstack is now installing libraries from pypi instead of
 # from git repositories by default. This works great if you are
 # developing server components, but if you want to develop libraries
 # and see them live in devstack you need to tell devstack it should
 # install them from git.
 #
 # ex: LIBS_FROM_GIT=python-keystoneclient,oslo.config
 #
 # Will install those 2 libraries from git, the rest from pypi.
 
24516d04
 ##############
 #
 #  OpenStack Server Components
 #
 ##############
 
93361643
 # metering service
a81dcaa6
 CEILOMETER_REPO=${CEILOMETER_REPO:-${GIT_BASE}/openstack/ceilometer.git}
 CEILOMETER_BRANCH=${CEILOMETER_BRANCH:-master}
93361643
 
ee5ae7b9
 # block storage service
a81dcaa6
 CINDER_REPO=${CINDER_REPO:-${GIT_BASE}/openstack/cinder.git}
 CINDER_BRANCH=${CINDER_BRANCH:-master}
67787e6b
 
096fb5a8
 # image catalog service
a81dcaa6
 GLANCE_REPO=${GLANCE_REPO:-${GIT_BASE}/openstack/glance.git}
 GLANCE_BRANCH=${GLANCE_BRANCH:-master}
096fb5a8
 
1a6d4492
 # heat service
 HEAT_REPO=${HEAT_REPO:-${GIT_BASE}/openstack/heat.git}
 HEAT_BRANCH=${HEAT_BRANCH:-master}
096fb5a8
 
 # django powered web control panel for openstack
a81dcaa6
 HORIZON_REPO=${HORIZON_REPO:-${GIT_BASE}/openstack/horizon.git}
 HORIZON_BRANCH=${HORIZON_BRANCH:-master}
096fb5a8
 
f00766b8
 # baremetal provisioning service
ce696b60
 IRONIC_REPO=${IRONIC_REPO:-${GIT_BASE}/openstack/ironic.git}
 IRONIC_BRANCH=${IRONIC_BRANCH:-master}
43e00660
 
1a6d4492
 # unified auth system (manages accounts/tokens)
 KEYSTONE_REPO=${KEYSTONE_REPO:-${GIT_BASE}/openstack/keystone.git}
 KEYSTONE_BRANCH=${KEYSTONE_BRANCH:-master}
 
24516d04
 # neutron service
 NEUTRON_REPO=${NEUTRON_REPO:-${GIT_BASE}/openstack/neutron.git}
 NEUTRON_BRANCH=${NEUTRON_BRANCH:-master}
58936fdb
 
20b839fd
 # neutron fwaas service
 NEUTRON_FWAAS_REPO=${NEUTRON_FWAAS_REPO:-${GIT_BASE}/openstack/neutron-fwaas.git}
 NEUTRON_FWAAS_BRANCH=${NEUTRON_FWAAS_BRANCH:-master}
 
 # neutron lbaas service
 NEUTRON_LBAAS_REPO=${NEUTRON_LBAAS_REPO:-${GIT_BASE}/openstack/neutron-lbaas.git}
 NEUTRON_LBAAS_BRANCH=${NEUTRON_LBAAS_BRANCH:-master}
 
 # neutron vpnaas service
 NEUTRON_VPNAAS_REPO=${NEUTRON_VPNAAS_REPO:-${GIT_BASE}/openstack/neutron-vpnaas.git}
 NEUTRON_VPNAAS_BRANCH=${NEUTRON_VPNAAS_BRANCH:-master}
 
1a6d4492
 # compute service
 NOVA_REPO=${NOVA_REPO:-${GIT_BASE}/openstack/nova.git}
 NOVA_BRANCH=${NOVA_BRANCH:-master}
 
ee5ae7b9
 # data processing service
 SAHARA_REPO=${SAHARA_REPO:-${GIT_BASE}/openstack/sahara.git}
 SAHARA_BRANCH=${SAHARA_BRANCH:-master}
 
 # object storage service
24516d04
 SWIFT_REPO=${SWIFT_REPO:-${GIT_BASE}/openstack/swift.git}
 SWIFT_BRANCH=${SWIFT_BRANCH:-master}
 
 # trove service
 TROVE_REPO=${TROVE_REPO:-${GIT_BASE}/openstack/trove.git}
 TROVE_BRANCH=${TROVE_BRANCH:-master}
 
 ##############
 #
 #  Testing Components
 #
 ##############
 
 # consolidated openstack requirements
 REQUIREMENTS_REPO=${REQUIREMENTS_REPO:-${GIT_BASE}/openstack/requirements.git}
 REQUIREMENTS_BRANCH=${REQUIREMENTS_BRANCH:-master}
 
 # Tempest test suite
 TEMPEST_REPO=${TEMPEST_REPO:-${GIT_BASE}/openstack/tempest.git}
 TEMPEST_BRANCH=${TEMPEST_BRANCH:-master}
 
 # TODO(sdague): this should end up as a library component like below
91b22905
 GITREPO["tempest-lib"]=${TEMPEST_LIB_REPO:-${GIT_BASE}/openstack/tempest-lib.git}
 GITBRANCH["tempest-lib"]=${TEMPEST_LIB_BRANCH:-master}
24516d04
 
 
 ##############
 #
 #  OpenStack Client Library Componets
 #
 ##############
 
 # ceilometer client library
e08ab104
 GITREPO["python-ceilometerclient"]=${CEILOMETERCLIENT_REPO:-${GIT_BASE}/openstack/python-ceilometerclient.git}
 GITBRANCH["python-ceilometerclient"]=${CEILOMETERCLIENT_BRANCH:-master}
24516d04
 
 # volume client
e08ab104
 GITREPO["python-cinderclient"]=${CINDERCLIENT_REPO:-${GIT_BASE}/openstack/python-cinderclient.git}
425e8447
 GITBRANCH["python-cinderclient"]=${CINDERCLIENT_BRANCH:-master}
24516d04
 
 # python glance client library
e08ab104
 GITREPO["python-glanceclient"]=${GLANCECLIENT_REPO:-${GIT_BASE}/openstack/python-glanceclient.git}
 GITBRANCH["python-glanceclient"]=${GLANCECLIENT_BRANCH:-master}
24516d04
 
 # python heat client library
e08ab104
 GITREPO["python-heatclient"]=${HEATCLIENT_REPO:-${GIT_BASE}/openstack/python-heatclient.git}
 GITBRANCH["python-heatclient"]=${HEATCLIENT_BRANCH:-master}
24516d04
 
 # ironic client
e08ab104
 GITREPO["python-ironicclient"]=${IRONICCLIENT_REPO:-${GIT_BASE}/openstack/python-ironicclient.git}
 GITBRANCH["python-ironicclient"]=${IRONICCLIENT_BRANCH:-master}
24516d04
 
 # python keystone client library to nova that horizon uses
e08ab104
 GITREPO["python-keystoneclient"]=${KEYSTONECLIENT_REPO:-${GIT_BASE}/openstack/python-keystoneclient.git}
 GITBRANCH["python-keystoneclient"]=${KEYSTONECLIENT_BRANCH:-master}
24516d04
 
 # neutron client
e08ab104
 GITREPO["python-neutronclient"]=${NEUTRONCLIENT_REPO:-${GIT_BASE}/openstack/python-neutronclient.git}
 GITBRANCH["python-neutronclient"]=${NEUTRONCLIENT_BRANCH:-master}
24516d04
 
ca85b799
 # python client library to nova that horizon (and others) use
e08ab104
 GITREPO["python-novaclient"]=${NOVACLIENT_REPO:-${GIT_BASE}/openstack/python-novaclient.git}
 GITBRANCH["python-novaclient"]=${NOVACLIENT_BRANCH:-master}
096fb5a8
 
ee5ae7b9
 # python saharaclient
 GITREPO["python-saharaclient"]=${SAHARACLIENT_REPO:-${GIT_BASE}/openstack/python-saharaclient.git}
 GITBRANCH["python-saharaclient"]=${SAHARACLIENT_BRANCH:-master}
 
24516d04
 # python swift client library
e08ab104
 GITREPO["python-swiftclient"]=${SWIFTCLIENT_REPO:-${GIT_BASE}/openstack/python-swiftclient.git}
 GITBRANCH["python-swiftclient"]=${SWIFTCLIENT_BRANCH:-master}
122ab703
 
24516d04
 # trove client library test
e08ab104
 GITREPO["python-troveclient"]=${TROVECLIENT_REPO:-${GIT_BASE}/openstack/python-troveclient.git}
 GITBRANCH["python-troveclient"]=${TROVECLIENT_BRANCH:-master}
122ab703
 
9f61d29e
 # consolidated openstack python client
e08ab104
 GITREPO["python-openstackclient"]=${OPENSTACKCLIENT_REPO:-${GIT_BASE}/openstack/python-openstackclient.git}
 GITBRANCH["python-openstackclient"]=${OPENSTACKCLIENT_BRANCH:-master}
aecd189f
 # this doesn't exist in a lib file, so set it here
 GITDIR["python-openstackclient"]=$DEST/python-openstackclient
9f61d29e
 
24516d04
 ###################
 #
 #  Oslo Libraries
 #
 ###################
122ab703
 
6b1cb108
 # cliff command line framework
cc52406a
 GITREPO["cliff"]=${CLIFF_REPO:-${GIT_BASE}/openstack/cliff.git}
 GITBRANCH["cliff"]=${CLIFF_BRANCH:-master}
6b1cb108
 
0b9464d4
 # oslo.concurrency
cc52406a
 GITREPO["oslo.concurrency"]=${OSLOCON_REPO:-${GIT_BASE}/openstack/oslo.concurrency.git}
b7cda389
 GITBRANCH["oslo.concurrency"]=${OSLOCON_BRANCH:-master}
0b9464d4
 
1b6b5318
 # oslo.config
cc52406a
 GITREPO["oslo.config"]=${OSLOCFG_REPO:-${GIT_BASE}/openstack/oslo.config.git}
 GITBRANCH["oslo.config"]=${OSLOCFG_BRANCH:-master}
1b6b5318
 
958111e1
 # oslo.context
 GITREPO["oslo.context"]=${OSLOCTX_REPO:-${GIT_BASE}/openstack/oslo.context.git}
 GITBRANCH["oslo.context"]=${OSLOCTX_BRANCH:-master}
 
da945f31
 # oslo.db
b7cda389
 GITREPO["oslo.db"]=${OSLODB_REPO:-${GIT_BASE}/openstack/oslo.db.git}
 GITBRANCH["oslo.db"]=${OSLODB_BRANCH:-master}
da945f31
 
cd5c8136
 # oslo.i18n
b7cda389
 GITREPO["oslo.i18n"]=${OSLOI18N_REPO:-${GIT_BASE}/openstack/oslo.i18n.git}
 GITBRANCH["oslo.i18n"]=${OSLOI18N_BRANCH:-master}
cd5c8136
 
13249f87
 # oslo.log
b7cda389
 GITREPO["oslo.log"]=${OSLOLOG_REPO:-${GIT_BASE}/openstack/oslo.log.git}
 GITBRANCH["oslo.log"]=${OSLOLOG_BRANCH:-master}
13249f87
 
1b6b5318
 # oslo.messaging
b7cda389
 GITREPO["oslo.messaging"]=${OSLOMSG_REPO:-${GIT_BASE}/openstack/oslo.messaging.git}
 GITBRANCH["oslo.messaging"]=${OSLOMSG_BRANCH:-master}
1b6b5318
 
0b9464d4
 # oslo.middleware
cc52406a
 GITREPO["oslo.middleware"]=${OSLOMID_REPO:-${GIT_BASE}/openstack/oslo.middleware.git}
 GITBRANCH["oslo.middleware"]=${OSLOMID_BRANCH:-master}
0b9464d4
 
0915e0c6
 # oslo.rootwrap
b7cda389
 GITREPO["oslo.rootwrap"]=${OSLORWRAP_REPO:-${GIT_BASE}/openstack/oslo.rootwrap.git}
 GITBRANCH["oslo.rootwrap"]=${OSLORWRAP_BRANCH:-master}
0915e0c6
 
5cd17f71
 # oslo.serialization
b7cda389
 GITREPO["oslo.serialization"]=${OSLOSERIALIZATION_REPO:-${GIT_BASE}/openstack/oslo.serialization.git}
 GITBRANCH["oslo.serialization"]=${OSLOSERIALIZATION_BRANCH:-master}
5cd17f71
 
 # oslo.utils
b7cda389
 GITREPO["oslo.utils"]=${OSLOUTILS_REPO:-${GIT_BASE}/openstack/oslo.utils.git}
 GITBRANCH["oslo.utils"]=${OSLOUTILS_BRANCH:-master}
5cd17f71
 
f5aa05c0
 # oslo.vmware
b7cda389
 GITREPO["oslo.vmware"]=${OSLOVMWARE_REPO:-${GIT_BASE}/openstack/oslo.vmware.git}
 GITBRANCH["oslo.vmware"]=${OSLOVMWARE_BRANCH:-master}
f5aa05c0
 
6b1cb108
 # pycadf auditing library
cc52406a
 GITREPO["pycadf"]=${PYCADF_REPO:-${GIT_BASE}/openstack/pycadf.git}
 GITBRANCH["pycadf"]=${PYCADF_BRANCH:-master}
6b1cb108
 
 # stevedore plugin manager
cc52406a
 GITREPO["stevedore"]=${STEVEDORE_REPO:-${GIT_BASE}/openstack/stevedore.git}
 GITBRANCH["stevedore"]=${STEVEDORE_BRANCH:-master}
6b1cb108
 
 # taskflow plugin manager
cc52406a
 GITREPO["taskflow"]=${TASKFLOW_REPO:-${GIT_BASE}/openstack/taskflow.git}
 GITBRANCH["taskflow"]=${TASKFLOW_BRANCH:-master}
6b1cb108
 
c187b88e
 # tooz plugin manager
 GITREPO["tooz"]=${TOOZ_REPO:-${GIT_BASE}/openstack/tooz.git}
 GITBRANCH["tooz"]=${TOOZ_BRANCH:-master}
 
1a6d4492
 # pbr drives the setuptools configs
cc52406a
 GITREPO["pbr"]=${PBR_REPO:-${GIT_BASE}/openstack-dev/pbr.git}
 GITBRANCH["pbr"]=${PBR_BRANCH:-master}
52e631d8
 
24516d04
 ##################
 #
 #  Libraries managed by OpenStack programs (non oslo)
 #
 ##################
1bfa3d53
 
24516d04
 # glance store library
ee5ae7b9
 GITREPO["glance_store"]=${GLANCE_STORE_REPO:-${GIT_BASE}/openstack/glance_store.git}
 GITBRANCH["glance_store"]=${GLANCE_STORE_BRANCH:-master}
5a09c922
 
24516d04
 # heat-cfntools server agent
 HEAT_CFNTOOLS_REPO=${HEAT_CFNTOOLS_REPO:-${GIT_BASE}/openstack/heat-cfntools.git}
 HEAT_CFNTOOLS_BRANCH=${HEAT_CFNTOOLS_BRANCH:-master}
0392a10a
 
24516d04
 # heat example templates and elements
 HEAT_TEMPLATES_REPO=${HEAT_TEMPLATES_REPO:-${GIT_BASE}/openstack/heat-templates.git}
 HEAT_TEMPLATES_BRANCH=${HEAT_TEMPLATES_BRANCH:-master}
 
 # django openstack_auth library
3c8973a9
 GITREPO["django_openstack_auth"]=${HORIZONAUTH_REPO:-${GIT_BASE}/openstack/django_openstack_auth.git}
 GITBRANCH["django_openstack_auth"]=${HORIZONAUTH_BRANCH:-master}
24516d04
 
 # keystone middleware
658312ca
 GITREPO["keystonemiddleware"]=${KEYSTONEMIDDLEWARE_REPO:-${GIT_BASE}/openstack/keystonemiddleware.git}
 GITBRANCH["keystonemiddleware"]=${KEYSTONEMIDDLEWARE_BRANCH:-master}
24516d04
 
 # s3 support for swift
43577d5a
 SWIFT3_REPO=${SWIFT3_REPO:-${GIT_BASE}/stackforge/swift3.git}
1a6d4492
 SWIFT3_BRANCH=${SWIFT3_BRANCH:-master}
 
 
24516d04
 ##################
 #
 #  TripleO Components
 #
 ##################
34723862
 
24516d04
 # diskimage-builder
 DIB_REPO=${DIB_REPO:-${GIT_BASE}/openstack/diskimage-builder.git}
 DIB_BRANCH=${DIB_BRANCH:-master}
f35cf91a
 
24516d04
 # os-apply-config configuration template tool
 OAC_REPO=${OAC_REPO:-${GIT_BASE}/openstack/os-apply-config.git}
 OAC_BRANCH=${OAC_BRANCH:-master}
1a6d4492
 
24516d04
 # os-collect-config configuration agent
 OCC_REPO=${OCC_REPO:-${GIT_BASE}/openstack/os-collect-config.git}
 OCC_BRANCH=${OCC_BRANCH:-master}
1a6d4492
 
24516d04
 # os-refresh-config configuration run-parts tool
 ORC_REPO=${ORC_REPO:-${GIT_BASE}/openstack/os-refresh-config.git}
 ORC_BRANCH=${ORC_BRANCH:-master}
1a6d4492
 
24516d04
 # Tripleo elements for diskimage-builder images
 TIE_REPO=${TIE_REPO:-${GIT_BASE}/openstack/tripleo-image-elements.git}
 TIE_BRANCH=${TIE_BRANCH:-master}
0cccad43
 
24516d04
 #################
 #
 #  Additional Libraries
 #
 #################
5e159496
 
6832272a
 # stackforge libraries that are used by OpenStack core services
 # wsme
 WSME_REPO=${WSME_REPO:-${GIT_BASE}/stackforge/wsme.git}
 WSME_BRANCH=${WSME_BRANCH:-master}
 
 # pecan
 PECAN_REPO=${PECAN_REPO:-${GIT_BASE}/stackforge/pecan.git}
 PECAN_BRANCH=${PECAN_BRANCH:-master}
 
cf355aa0
 # sqlalchemy-migrate
 SQLALCHEMY_MIGRATE_REPO=${SQLALCHEMY_MIGRATE_REPO:-${GIT_BASE}/stackforge/sqlalchemy-migrate.git}
 SQLALCHEMY_MIGRATE_BRANCH=${SQLALCHEMY_MIGRATE_BRANCH:-master}
 
6832272a
 
24516d04
 #################
 #
 #  3rd Party Components (non pip installable)
 #
 #  NOTE(sdague): these should be converted to release version installs or removed
 #
 #################
 
 # ironic python agent
 IRONIC_PYTHON_AGENT_REPO=${IRONIC_PYTHON_AGENT_REPO:-${GIT_BASE}/openstack/ironic-python-agent.git}
 IRONIC_PYTHON_AGENT_BRANCH=${IRONIC_PYTHON_AGENT_BRANCH:-master}
 
 # a websockets/html5 or flash powered VNC console for vm instances
 NOVNC_REPO=${NOVNC_REPO:-https://github.com/kanaka/noVNC.git}
 NOVNC_BRANCH=${NOVNC_BRANCH:-master}
 
 # ryu service
 RYU_REPO=${RYU_REPO:-https://github.com/osrg/ryu.git}
 RYU_BRANCH=${RYU_BRANCH:-master}
 
 # a websockets/html5 or flash powered SPICE console for vm instances
 SPICE_REPO=${SPICE_REPO:-http://anongit.freedesktop.org/git/spice/spice-html5.git}
 SPICE_BRANCH=${SPICE_BRANCH:-master}
 
 
 
c0c6f006
 # Nova hypervisor configuration.  We default to libvirt with **kvm** but will
 # drop back to **qemu** if we are unable to load the kvm module.  ``stack.sh`` can
32e1603e
 # also install an **LXC**, **OpenVZ** or **XenAPI** based system.  If xenserver-core
 # is installed, the default will be XenAPI
 DEFAULT_VIRT_DRIVER=libvirt
 is_package_installed xenserver-core && DEFAULT_VIRT_DRIVER=xenserver
 VIRT_DRIVER=${VIRT_DRIVER:-$DEFAULT_VIRT_DRIVER}
337bd817
 case "$VIRT_DRIVER" in
06fb29c6
     ironic|libvirt)
337bd817
         LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm}
         if [[ "$os_VENDOR" =~ (Debian) ]]; then
             LIBVIRT_GROUP=libvirt
         else
             LIBVIRT_GROUP=libvirtd
         fi
         ;;
2c94ee52
     fake)
         NUMBER_FAKE_NOVA_COMPUTE=${NUMBER_FAKE_NOVA_COMPUTE:-1}
         ;;
337bd817
     xenserver)
b05c8769
         # Xen config common to nova and neutron
337bd817
         XENAPI_USER=${XENAPI_USER:-"root"}
d15c8a08
         # This user will be used for dom0 - domU communication
         #   should be able to log in to dom0 without a password
         #   will be used to install the plugins
         DOMZERO_USER=${DOMZERO_USER:-"domzero"}
337bd817
         ;;
     *)
         ;;
 esac
c0c6f006
 
1a6d4492
 
 # Images
 # ------
 
 # Specify a comma-separated list of images to download and install into glance.
 # Supported urls here are:
4f6d7b61
 #  * "uec-style" images:
 #     If the file ends in .tar.gz, uncompress the tarball and and select the first
 #     .img file inside it as the image.  If present, use "*-vmlinuz*" as the kernel
 #     and "*-initrd*" as the ramdisk
1a6d4492
 #     example: http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-server-cloudimg-amd64.tar.gz
4f6d7b61
 #  * disk image (*.img,*.img.gz)
 #    if file ends in .img, then it will be uploaded and registered as a to
 #    glance as a disk image.  If it ends in .gz, it is uncompressed first.
64a90660
 #    example:
1a6d4492
 #      http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-server-cloudimg-armel-disk1.img
53971539
 #      http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-rootfs.img.gz
4a43b7bd
 #  * OpenVZ image:
 #    OpenVZ uses its own format of image, and does not support UEC style images
 
3584e555
 #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
53971539
 #IMAGE_URLS="http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-disk.img" # cirros full disk image
2d4c8da8
 
 CIRROS_VERSION=${CIRROS_VERSION:-"0.3.2"}
53971539
 CIRROS_ARCH=${CIRROS_ARCH:-"x86_64"}
4a43b7bd
 
 # Set default image based on ``VIRT_DRIVER`` and ``LIBVIRT_TYPE``, either of
b968b0c3
 # which may be set in ``local.conf``.  Also allow ``DEFAULT_IMAGE_NAME`` and
 # ``IMAGE_URLS`` to be set in the `localrc` section of ``local.conf``.
c0c6f006
 case "$VIRT_DRIVER" in
fda946e3
     openvz)
a49ee32b
         DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-ubuntu-12.04-x86_64}
a8ca815b
         IMAGE_URLS=${IMAGE_URLS:-"http://download.openvz.org/template/precreated/ubuntu-12.04-x86_64.tar.gz"};;
c0c6f006
     libvirt)
         case "$LIBVIRT_TYPE" in
             lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc
53971539
                 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-rootfs}
                 IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-rootfs.img.gz"};;
c0c6f006
             *) # otherwise, use the uec style image (with kernel, ramdisk, disk)
53971539
                 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec}
                 IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec.tar.gz"};;
c0c6f006
         esac
         ;;
a418af95
     vsphere)
641722b8
         DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.2-i386-disk.vmdk}
         IMAGE_URLS=${IMAGE_URLS:-"http://partnerweb.vmware.com/programs/vmdkimage/cirros-0.3.2-i386-disk.vmdk"};;
c75c78ad
     xenserver)
         DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-disk}
5c64a463
         IMAGE_URLS=${IMAGE_URLS:-"https://github.com/downloads/citrix-openstack/warehouse/cirros-0.3.0-x86_64-disk.vhd.tgz"}
         IMAGE_URLS+=",http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-uec.tar.gz";;
a6a45467
     ironic)
         # Ironic can do both partition and full disk images, depending on the driver
         if [[ "$IRONIC_DEPLOY_DRIVER" == "agent_ssh" ]]; then
             DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-x86_64-disk}
         else
             DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-x86_64-uec}
         fi
         IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-uec.tar.gz"}
         IMAGE_URLS+=",http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-x86_64-disk.img";;
1a6d4492
     *) # Default to Cirros with kernel, ramdisk and disk image
53971539
         DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec}
         IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/${CIRROS_VERSION}/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec.tar.gz"};;
a368218a
 esac
0ab1d46e
 
4418d1fb
 # Use 64bit fedora image if heat is enabled
 if [[ "$ENABLED_SERVICES" =~ 'h-api' ]]; then
527f21c7
     case "$VIRT_DRIVER" in
2f8e08b5
         libvirt|ironic)
6d012cf1
             HEAT_CFN_IMAGE_URL=${HEAT_CFN_IMAGE_URL:-"https://download.fedoraproject.org/pub/alt/openstack/20/x86_64/Fedora-x86_64-20-20140618-sda.qcow2"}
527f21c7
             IMAGE_URLS+=",$HEAT_CFN_IMAGE_URL"
             ;;
         *)
             ;;
     esac
8c1b95ee
 fi
fafb62b9
 
3ec8a903
 # Trove needs a custom image for its work
fafb62b9
 if [[ "$ENABLED_SERVICES" =~ 'tr-api' ]]; then
     case "$VIRT_DRIVER" in
2f8e08b5
         libvirt|ironic|xenapi)
3ec8a903
             TROVE_GUEST_IMAGE_URL=${TROVE_GUEST_IMAGE_URL:-"http://tarballs.openstack.org/trove/images/ubuntu/mysql.qcow2"}
fafb62b9
             IMAGE_URLS+=",${TROVE_GUEST_IMAGE_URL}"
             ;;
         *)
             ;;
     esac
 fi
 
b623860c
 # Staging Area for New Images, have them here for at least 24hrs for nodepool
 # to cache them otherwise the failure rates in the gate are too high
53753293
 PRECACHE_IMAGES=$(trueorfalse False PRECACHE_IMAGES)
b623860c
 if [[ "$PRECACHE_IMAGES" == "True" ]]; then
4418d1fb
     # staging in update for nodepool
6d012cf1
     IMAGE_URL="https://download.fedoraproject.org/pub/alt/openstack/20/x86_64/Fedora-x86_64-20-20140618-sda.qcow2"
bfcb2ff7
     if ! [[ "$IMAGE_URLS"  =~ "$IMAGE_URL" ]]; then
         IMAGE_URLS+=",$IMAGE_URL"
     fi
b623860c
 fi
ad13ba29
 
4c03034e
 # 10Gb default volume backing file size
 VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-10250M}
fda946e3
 
09718335
 # Prefixes for volume and instance names
b3236914
 VOLUME_NAME_PREFIX=${VOLUME_NAME_PREFIX:-volume-}
 INSTANCE_NAME_PREFIX=${INSTANCE_NAME_PREFIX:-instance-}
 
b7490da9
 # Set default port for nova-objectstore
 S3_SERVICE_PORT=${S3_SERVICE_PORT:-3333}
 
 # Common network names
fda946e3
 PRIVATE_NETWORK_NAME=${PRIVATE_NETWORK_NAME:-"private"}
640f1e4c
 PUBLIC_NETWORK_NAME=${PUBLIC_NETWORK_NAME:-"public"}
681f3fdd
 
 # Compatibility until it's eradicated from CI
 USE_SCREEN=${SCREEN_DEV:-$USE_SCREEN}
584d90ec
 
f02be85c
 # Set default screen name
 SCREEN_NAME=${SCREEN_NAME:-stack}
 
71d5630c
 # Do not install packages tagged with 'testonly' by default
 INSTALL_TESTONLY_PACKAGES=${INSTALL_TESTONLY_PACKAGES:-False}
 
fd98edb4
 # Undo requirements changes by global requirements
 UNDO_REQUIREMENTS=${UNDO_REQUIREMENTS:-True}
 
26867a63
 # Allow the use of an alternate protocol (such as https) for service endpoints
 SERVICE_PROTOCOL=${SERVICE_PROTOCOL:-http}
 
05bd7b80
 # Sets the maximum number of workers for most services to reduce
2f72050a
 # the memory used where there are a large number of CPUs present
 # (the default number of workers for many services is the number of CPUs)
05bd7b80
 # Also sets the minimum number of workers to 2.
 API_WORKERS=${API_WORKERS:=$(( ($(nproc)/2)<2 ? 2 : ($(nproc)/2) ))}
2f72050a
 
44e16e01
 # Service startup timeout
 SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60}
 
63d25d97
 # Support alternative yum -- in future Fedora 'dnf' will become the
 # only supported installer, but for now 'yum' and 'dnf' are both
 # available in parallel with compatible CLIs.  Allow manual switching
 # till we get to the point we need to handle this automatically
 YUM=${YUM:-yum}
 
53753293
 # Common Configuration
 # --------------------
 
 # Set ``OFFLINE`` to ``True`` to configure ``stack.sh`` to run cleanly without
 # Internet access. ``stack.sh`` must have been previously run with Internet
 # access to install prerequisites and fetch repositories.
 OFFLINE=$(trueorfalse False OFFLINE)
 
 # Set ``ERROR_ON_CLONE`` to ``True`` to configure ``stack.sh`` to exit if
 # the destination git repository does not exist during the ``git_clone``
 # operation.
 ERROR_ON_CLONE=$(trueorfalse False ERROR_ON_CLONE)
 
 # Whether to enable the debug log level in OpenStack services
 ENABLE_DEBUG_LOG_LEVEL=$(trueorfalse True ENABLE_DEBUG_LOG_LEVEL)
 
 # Set fixed and floating range here so we can make sure not to use addresses
 # from either range when attempting to guess the IP to use for the host.
 # Note that setting FIXED_RANGE may be necessary when running DevStack
 # in an OpenStack cloud that uses either of these address ranges internally.
 FLOATING_RANGE=${FLOATING_RANGE:-172.24.4.0/24}
 FIXED_RANGE=${FIXED_RANGE:-10.0.0.0/24}
 FIXED_NETWORK_SIZE=${FIXED_NETWORK_SIZE:-256}
 HOST_IP_IFACE=${HOST_IP_IFACE:-}
 HOST_IP=${HOST_IP:-}
 
 HOST_IP=$(get_default_host_ip $FIXED_RANGE $FLOATING_RANGE "$HOST_IP_IFACE" "$HOST_IP")
 if [ "$HOST_IP" == "" ]; then
     die $LINENO "Could not determine host ip address.  See local.conf for suggestions on setting HOST_IP."
 fi
 
 # Allow the use of an alternate hostname (such as localhost/127.0.0.1) for service endpoints.
 SERVICE_HOST=${SERVICE_HOST:-$HOST_IP}
 
 # Configure services to use syslog instead of writing to individual log files
 SYSLOG=$(trueorfalse False SYSLOG)
 SYSLOG_HOST=${SYSLOG_HOST:-$HOST_IP}
 SYSLOG_PORT=${SYSLOG_PORT:-516}
 
 # Use color for logging output (only available if syslog is not used)
 LOG_COLOR=$(trueorfalse True LOG_COLOR)
 
 # Set global ``GIT_DEPTH=<number>`` to limit the history depth of the git clone
59d52f30
 # Set to 0 to disable shallow cloning
 GIT_DEPTH=${GIT_DEPTH:-0}
53753293
 
 # Use native SSL for servers in SSL_ENABLED_SERVICES
 USE_SSL=$(trueorfalse False USE_SSL)
 
44e16e01
 # Following entries need to be last items in file
 
dde41d07
 # Compatibility bits required by other callers like Grenade
 
 # Old way was using SCREEN_LOGDIR to locate those logs and LOGFILE for the stack.sh trace log.
 # LOGFILE       SCREEN_LOGDIR       output
 # not set       not set             no log files
 # set           not set             stack.sh log to LOGFILE
 # not set       set                 screen logs to SCREEN_LOGDIR
 # set           set                 stack.sh log to LOGFILE, screen logs to SCREEN_LOGDIR
 
 # New way is LOGDIR for all logs and LOGFILE for stack.sh trace log, but if not fully-qualified will be in LOGDIR
 # LOGFILE       LOGDIR              output
 # not set       not set             (new) set LOGDIR from default
 # set           not set             stack.sh log to LOGFILE, (new) set LOGDIR from LOGFILE
 # not set       set                 screen logs to LOGDIR
 # set           set                 stack.sh log to LOGFILE, screen logs to LOGDIR
 
 # For compat, if SCREEN_LOGDIR is set, it will be used to create back-compat symlinks to the LOGDIR
 # symlinks to SCREEN_LOGDIR (compat)
 
 
 # Set up new logging defaults
 if [[ -z "${LOGDIR:-}" ]]; then
     default_logdir=$DEST/logs
     if [[ -z "${LOGFILE:-}" ]]; then
         # Nothing is set, we need a default
         LOGDIR="$default_logdir"
     else
         # Set default LOGDIR
         LOGDIR="${LOGFILE%/*}"
         logfile="${LOGFILE##*/}"
         if [[ -z "$LOGDIR" || "$LOGDIR" == "$logfile" ]]; then
             # LOGFILE had no path, set a default
             LOGDIR="$default_logdir"
         fi
 
         # Check for duplication
         if [[ "${SCREEN_LOGDIR:-}" == "${LOGDIR}" ]]; then
             # We don't need the symlinks since it's the same directory
             unset SCREEN_LOGDIR
         fi
     fi
     unset default_logdir logfile
 fi
 
 # LOGDIR is always set at this point so it is not useful as a 'enable' for service logs
 # SCREEN_LOGDIR may be set, it is useful to enable the compat symlinks
 
584d90ec
 # Local variables:
 # mode: shell-script
 # End: