4a43b7bd |
# stackrc
# |
0bd2410d |
# Find the other rc files
RC_DIR=$(cd $(dirname "$BASH_SOURCE") && pwd)
|
1214d9d0 |
# Destination path for installation
DEST=/opt/stack
|
c83a7e12 |
# Destination for working data
DATA_DIR=${DEST}/data
|
74759aa1 |
# Determine stack user
if [[ $EUID -eq 0 ]]; then
STACK_USER=stack
else
STACK_USER=$(whoami)
fi |
91b8d13e |
|
8da5656f |
# Specify which services to launch. These generally correspond to |
4a43b7bd |
# screen tabs. To change the default list, use the ``enable_service`` and
# ``disable_service`` functions in ``localrc``.
# For example, to enable Swift add this to ``localrc``: |
1f11f9ac |
# enable_service swift
# In order to enable Quantum (a single node setup) add the following
# settings in `` localrc``:
# disable_service n-net
# enable_service q-svc
# enable_service q-agt
# enable_service q-dhcp
# enable_service q-l3
# enable_service q-meta
# enable_service quantum
# # Optional, to enable tempest configuration as part of devstack
# enable_service tempest |
11277b1f |
ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,rabbit,tempest,mysql |
8da5656f |
|
67787e6b |
# Set the default Nova APIs to enable |
6e7e1c94 |
NOVA_ENABLED_APIS=ec2,osapi_compute,metadata |
67787e6b |
|
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
if [ -f $RC_DIR/localrc ]; then
source $RC_DIR/localrc
fi
|
cc6b4435 |
|
4a43b7bd |
# Repositories
# ------------
|
d5b18ecb |
# Base GIT Repo URL
# Another option is http://review.openstack.org/p |
a81dcaa6 |
GIT_BASE=${GIT_BASE:-https://github.com} |
d5b18ecb |
|
93361643 |
# metering service |
a81dcaa6 |
CEILOMETER_REPO=${CEILOMETER_REPO:-${GIT_BASE}/openstack/ceilometer.git} |
e54bbc72 |
CEILOMETER_BRANCH=${CEILOMETER_BRANCH:-stable/grizzly} |
93361643 |
|
e583d9b8 |
# ceilometer client library |
a81dcaa6 |
CEILOMETERCLIENT_REPO=${CEILOMETERCLIENT_REPO:-${GIT_BASE}/openstack/python-ceilometerclient.git}
CEILOMETERCLIENT_BRANCH=${CEILOMETERCLIENT_BRANCH:-master} |
e583d9b8 |
|
67787e6b |
# volume service |
a81dcaa6 |
CINDER_REPO=${CINDER_REPO:-${GIT_BASE}/openstack/cinder.git} |
e54bbc72 |
CINDER_BRANCH=${CINDER_BRANCH:-stable/grizzly} |
67787e6b |
# volume client |
a81dcaa6 |
CINDERCLIENT_REPO=${CINDERCLIENT_REPO:-${GIT_BASE}/openstack/python-cinderclient.git}
CINDERCLIENT_BRANCH=${CINDERCLIENT_BRANCH:-master} |
67787e6b |
|
096fb5a8 |
# compute service |
a81dcaa6 |
NOVA_REPO=${NOVA_REPO:-${GIT_BASE}/openstack/nova.git} |
e54bbc72 |
NOVA_BRANCH=${NOVA_BRANCH:-stable/grizzly} |
096fb5a8 |
|
28fa4e8d |
# storage service |
a81dcaa6 |
SWIFT_REPO=${SWIFT_REPO:-${GIT_BASE}/openstack/swift.git} |
e54bbc72 |
SWIFT_BRANCH=${SWIFT_BRANCH:-stable/grizzly} |
a81dcaa6 |
SWIFT3_REPO=${SWIFT3_REPO:-${GIT_BASE}/fujita/swift3.git}
SWIFT3_BRANCH=${SWIFT3_BRANCH:-master} |
42b1aa9c |
|
fda9df87 |
# python swift client library |
a81dcaa6 |
SWIFTCLIENT_REPO=${SWIFTCLIENT_REPO:-${GIT_BASE}/openstack/python-swiftclient.git}
SWIFTCLIENT_BRANCH=${SWIFTCLIENT_BRANCH:-master} |
fda9df87 |
|
096fb5a8 |
# image catalog service |
a81dcaa6 |
GLANCE_REPO=${GLANCE_REPO:-${GIT_BASE}/openstack/glance.git} |
e54bbc72 |
GLANCE_BRANCH=${GLANCE_BRANCH:-stable/grizzly} |
096fb5a8 |
|
45495258 |
# python glance client library |
a81dcaa6 |
GLANCECLIENT_REPO=${GLANCECLIENT_REPO:-${GIT_BASE}/openstack/python-glanceclient.git}
GLANCECLIENT_BRANCH=${GLANCECLIENT_BRANCH:-master} |
45495258 |
|
096fb5a8 |
# unified auth system (manages accounts/tokens) |
a81dcaa6 |
KEYSTONE_REPO=${KEYSTONE_REPO:-${GIT_BASE}/openstack/keystone.git} |
e54bbc72 |
KEYSTONE_BRANCH=${KEYSTONE_BRANCH:-stable/grizzly} |
096fb5a8 |
# a websockets/html5 or flash powered VNC console for vm instances |
a81dcaa6 |
NOVNC_REPO=${NOVNC_REPO:-${GIT_BASE}/kanaka/noVNC.git}
NOVNC_BRANCH=${NOVNC_BRANCH:-master} |
096fb5a8 |
|
d10e12f1 |
# a websockets/html5 or flash powered SPICE console for vm instances |
a81dcaa6 |
SPICE_REPO=${SPICE_REPO:-http://anongit.freedesktop.org/git/spice/spice-html5.git}
SPICE_BRANCH=${SPICE_BRANCH:-master} |
d10e12f1 |
|
096fb5a8 |
# django powered web control panel for openstack |
a81dcaa6 |
HORIZON_REPO=${HORIZON_REPO:-${GIT_BASE}/openstack/horizon.git} |
e54bbc72 |
HORIZON_BRANCH=${HORIZON_BRANCH:-stable/grizzly} |
096fb5a8 |
|
ca85b799 |
# python client library to nova that horizon (and others) use |
a81dcaa6 |
NOVACLIENT_REPO=${NOVACLIENT_REPO:-${GIT_BASE}/openstack/python-novaclient.git}
NOVACLIENT_BRANCH=${NOVACLIENT_BRANCH:-master} |
096fb5a8 |
|
9f61d29e |
# consolidated openstack python client |
a81dcaa6 |
OPENSTACKCLIENT_REPO=${OPENSTACKCLIENT_REPO:-${GIT_BASE}/openstack/python-openstackclient.git}
OPENSTACKCLIENT_BRANCH=${OPENSTACKCLIENT_BRANCH:-master} |
9f61d29e |
|
52e631d8 |
# python keystone client library to nova that horizon uses |
a81dcaa6 |
KEYSTONECLIENT_REPO=${KEYSTONECLIENT_REPO:-${GIT_BASE}/openstack/python-keystoneclient.git}
KEYSTONECLIENT_BRANCH=${KEYSTONECLIENT_BRANCH:-master} |
52e631d8 |
|
1bfa3d53 |
# quantum service |
bb7737d1 |
QUANTUM_REPO=${QUANTUM_REPO:-${GIT_BASE}/openstack/neutron.git} |
e54bbc72 |
QUANTUM_BRANCH=${QUANTUM_BRANCH:-stable/grizzly} |
1bfa3d53 |
|
5a09c922 |
# quantum client |
bb7737d1 |
QUANTUMCLIENT_REPO=${QUANTUMCLIENT_REPO:-${GIT_BASE}/openstack/python-neutronclient.git} |
a81dcaa6 |
QUANTUMCLIENT_BRANCH=${QUANTUMCLIENT_BRANCH:-master} |
5a09c922 |
|
608bb12a |
# Tempest test suite |
a81dcaa6 |
TEMPEST_REPO=${TEMPEST_REPO:-${GIT_BASE}/openstack/tempest.git}
TEMPEST_BRANCH=${TEMPEST_BRANCH:-master} |
b0e57cf3 |
|
bfdad75e |
# heat service |
a81dcaa6 |
HEAT_REPO=${HEAT_REPO:-${GIT_BASE}/openstack/heat.git} |
e54bbc72 |
HEAT_BRANCH=${HEAT_BRANCH:-stable/grizzly} |
bfdad75e |
|
32761a49 |
# python heat client library |
a81dcaa6 |
HEATCLIENT_REPO=${HEATCLIENT_REPO:-${GIT_BASE}/openstack/python-heatclient.git}
HEATCLIENT_BRANCH=${HEATCLIENT_BRANCH:-master} |
32761a49 |
|
602cf9bd |
# ryu service |
a81dcaa6 |
RYU_REPO=${RYU_REPO:-${GIT_BASE}/osrg/ryu.git}
RYU_BRANCH=${RYU_BRANCH:-master} |
602cf9bd |
|
f35cf91a |
# diskimage-builder |
a81dcaa6 |
BM_IMAGE_BUILD_REPO=${BM_IMAGE_BUILD_REPO:-${GIT_BASE}/stackforge/diskimage-builder.git}
BM_IMAGE_BUILD_BRANCH=${BM_IMAGE_BUILD_BRANCH:-master} |
f35cf91a |
|
7611c894 |
# bm_poseur
# Used to simulate a hardware environment for baremetal
# Only used if BM_USE_FAKE_ENV is set |
a81dcaa6 |
BM_POSEUR_REPO=${BM_POSEUR_REPO:-${GIT_BASE}/tripleo/bm_poseur.git}
BM_POSEUR_BRANCH=${BM_POSEUR_BRANCH:-master} |
7611c894 |
|
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
# also install an **LXC** or **OpenVZ** based system.
VIRT_DRIVER=${VIRT_DRIVER:-libvirt}
LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm}
|
4a43b7bd |
# Specify a comma-separated list of UEC images to download and install into glance. |
4f6d7b61 |
# supported urls here are:
# * "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
# example: http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-amd64.tar.gz
# * 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: |
4f6d7b61 |
# http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-armel-disk1.img |
cde655ac |
# http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-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 |
cde655ac |
#IMAGE_URLS="http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img" # cirros full disk image |
4a43b7bd |
# Set default image based on ``VIRT_DRIVER`` and ``LIBVIRT_TYPE``, either of |
fda946e3 |
# which may be set in ``localrc``. Also allow ``DEFAULT_IMAGE_NAME`` and |
4a43b7bd |
# ``IMAGE_URLS`` to be set directly in ``localrc``. |
c0c6f006 |
case "$VIRT_DRIVER" in |
fda946e3 |
openvz) |
2c567f6d |
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-ubuntu-12.04-x86_64}
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 |
cde655ac |
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-rootfs}
IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-rootfs.img.gz"};; |
c0c6f006 |
*) # otherwise, use the uec style image (with kernel, ramdisk, disk) |
cde655ac |
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-uec}
IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};; |
c0c6f006 |
esac
;;
*) # otherwise, use the uec style image (with kernel, ramdisk, disk) |
cde655ac |
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-uec}
IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};; |
a368218a |
esac |
0ab1d46e |
|
9cb1776a |
# 5Gb default volume backing file size
VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-5130M} |
fda946e3 |
|
b3236914 |
# Name of the LVM volume group to use/create for iscsi volumes
VOLUME_GROUP=${VOLUME_GROUP:-stack-volumes}
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 |
# Local variables:
# mode: shell-script
# End: |