2012-03-08 00:33:54 -06:00
|
|
|
# Find the other rc files
|
|
|
|
RC_DIR=$(cd $(dirname "$BASH_SOURCE") && pwd)
|
|
|
|
|
2012-07-06 09:39:07 -05:00
|
|
|
# Destination path for installation
|
|
|
|
DEST=/opt/stack
|
|
|
|
|
2012-03-09 14:21:40 +00:00
|
|
|
# Specify which services to launch. These generally correspond to
|
|
|
|
# screen tabs. If you like to add other services that are not enabled
|
|
|
|
# by default you can append them in your ENABLED_SERVICES variable in
|
|
|
|
# your localrc. For example for swift you can just add this in your
|
|
|
|
# localrc to add it with the other services:
|
2012-06-27 11:01:40 +02:00
|
|
|
# ENABLED_SERVICES+=,swift
|
|
|
|
#
|
|
|
|
# If you like to explicitly remove services you can add a -$service in
|
|
|
|
# ENABLED_SERVICES, for example in your localrc to install all defaults but not
|
2012-07-11 13:21:08 -06:00
|
|
|
# cinder you would just need to set this :
|
|
|
|
# ENABLED_SERVICES+=,-cinder
|
|
|
|
ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,mysql,rabbit
|
2012-03-09 14:21:40 +00:00
|
|
|
|
2012-05-02 11:48:15 -05:00
|
|
|
# Set the default Nova APIs to enable
|
|
|
|
NOVA_ENABLED_APIS=ec2,osapi_compute,osapi_volume,metadata
|
|
|
|
|
2012-07-26 09:21:01 -05:00
|
|
|
# Base GIT Repo URL
|
|
|
|
# Another option is http://review.openstack.org/p
|
|
|
|
GIT_BASE=https://github.com
|
|
|
|
|
2012-07-26 11:22:05 -07:00
|
|
|
# metering service
|
|
|
|
CEILOMETER_REPO=https://github.com/stackforge/ceilometer.git
|
|
|
|
CEILOMETER_BRANCH=master
|
|
|
|
|
2012-05-02 11:48:15 -05:00
|
|
|
# volume service
|
2012-07-26 09:21:01 -05:00
|
|
|
CINDER_REPO=${GIT_BASE}/openstack/cinder
|
2012-05-02 11:48:15 -05:00
|
|
|
CINDER_BRANCH=master
|
|
|
|
|
|
|
|
# volume client
|
2012-07-26 09:21:01 -05:00
|
|
|
CINDERCLIENT_REPO=${GIT_BASE}/openstack/python-cinderclient
|
2012-05-02 11:48:15 -05:00
|
|
|
CINDERCLIENT_BRANCH=master
|
|
|
|
|
2011-09-26 13:14:46 -07:00
|
|
|
# compute service
|
2012-07-26 09:21:01 -05:00
|
|
|
NOVA_REPO=${GIT_BASE}/openstack/nova.git
|
2011-11-23 10:10:53 -08:00
|
|
|
NOVA_BRANCH=master
|
2011-09-26 13:14:46 -07:00
|
|
|
|
2011-11-01 12:30:55 +01:00
|
|
|
# storage service
|
2012-07-26 09:21:01 -05:00
|
|
|
SWIFT_REPO=${GIT_BASE}/openstack/swift.git
|
2011-11-23 10:10:53 -08:00
|
|
|
SWIFT_BRANCH=master
|
2012-05-24 14:11:01 -07:00
|
|
|
SWIFT3_REPO=https://github.com/fujita/swift3.git
|
|
|
|
SWIFT3_BRANCH=master
|
|
|
|
|
2011-11-01 12:30:55 +01:00
|
|
|
|
2012-05-22 10:27:08 +00:00
|
|
|
# python swift client library
|
2012-07-26 09:21:01 -05:00
|
|
|
SWIFTCLIENT_REPO=${GIT_BASE}/openstack/python-swiftclient
|
2012-05-22 10:27:08 +00:00
|
|
|
SWIFTCLIENT_BRANCH=master
|
|
|
|
|
2011-09-26 13:14:46 -07:00
|
|
|
# image catalog service
|
2012-07-26 09:21:01 -05:00
|
|
|
GLANCE_REPO=${GIT_BASE}/openstack/glance.git
|
2011-11-23 10:10:53 -08:00
|
|
|
GLANCE_BRANCH=master
|
2011-09-26 13:14:46 -07:00
|
|
|
|
2012-04-13 13:16:38 -05:00
|
|
|
# python glance client library
|
2012-07-26 09:21:01 -05:00
|
|
|
GLANCECLIENT_REPO=${GIT_BASE}/openstack/python-glanceclient
|
2012-04-13 13:16:38 -05:00
|
|
|
GLANCECLIENT_BRANCH=master
|
|
|
|
|
2011-09-26 13:14:46 -07:00
|
|
|
# unified auth system (manages accounts/tokens)
|
2012-07-26 09:21:01 -05:00
|
|
|
KEYSTONE_REPO=${GIT_BASE}/openstack/keystone.git
|
2012-02-16 16:31:24 -06:00
|
|
|
KEYSTONE_BRANCH=master
|
2011-09-26 13:14:46 -07:00
|
|
|
|
|
|
|
# a websockets/html5 or flash powered VNC console for vm instances
|
2012-05-04 10:19:44 -07:00
|
|
|
NOVNC_REPO=https://github.com/kanaka/noVNC.git
|
2011-11-23 10:10:53 -08:00
|
|
|
NOVNC_BRANCH=master
|
2011-09-26 13:14:46 -07:00
|
|
|
|
|
|
|
# django powered web control panel for openstack
|
2012-07-26 09:21:01 -05:00
|
|
|
HORIZON_REPO=${GIT_BASE}/openstack/horizon.git
|
2011-11-23 10:10:53 -08:00
|
|
|
HORIZON_BRANCH=master
|
2011-09-26 13:14:46 -07:00
|
|
|
|
2011-10-28 14:00:21 -07:00
|
|
|
# python client library to nova that horizon (and others) use
|
2012-07-26 09:21:01 -05:00
|
|
|
NOVACLIENT_REPO=${GIT_BASE}/openstack/python-novaclient.git
|
2011-09-27 11:25:18 -07:00
|
|
|
NOVACLIENT_BRANCH=master
|
2011-09-26 13:14:46 -07:00
|
|
|
|
2012-05-01 00:07:29 -05:00
|
|
|
# Shared openstack python client library
|
2012-07-26 09:21:01 -05:00
|
|
|
OPENSTACKCLIENT_REPO=${GIT_BASE}/openstack/python-openstackclient.git
|
2012-05-01 00:07:29 -05:00
|
|
|
OPENSTACKCLIENT_BRANCH=master
|
|
|
|
|
2011-12-27 22:22:14 -08:00
|
|
|
# python keystone client library to nova that horizon uses
|
2012-07-26 09:21:01 -05:00
|
|
|
KEYSTONECLIENT_REPO=${GIT_BASE}/openstack/python-keystoneclient
|
2011-12-27 22:22:14 -08:00
|
|
|
KEYSTONECLIENT_BRANCH=master
|
|
|
|
|
2011-10-27 18:18:20 -07:00
|
|
|
# quantum service
|
2012-07-26 09:21:01 -05:00
|
|
|
QUANTUM_REPO=${GIT_BASE}/openstack/quantum
|
2011-11-23 10:10:53 -08:00
|
|
|
QUANTUM_BRANCH=master
|
2011-10-27 18:18:20 -07:00
|
|
|
|
2012-01-25 17:22:15 -05:00
|
|
|
# quantum client
|
2012-07-26 09:21:01 -05:00
|
|
|
QUANTUM_CLIENT_REPO=${GIT_BASE}/openstack/python-quantumclient
|
2012-01-25 17:22:15 -05:00
|
|
|
QUANTUM_CLIENT_BRANCH=master
|
|
|
|
|
2012-01-10 14:43:17 -06:00
|
|
|
# Tempest test suite
|
2012-07-26 09:21:01 -05:00
|
|
|
TEMPEST_REPO=${GIT_BASE}/openstack/tempest.git
|
2012-01-10 14:43:17 -06:00
|
|
|
TEMPEST_BRANCH=master
|
2011-11-04 12:13:43 -05:00
|
|
|
|
2012-07-06 17:49:12 -07:00
|
|
|
# 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}
|
|
|
|
|
|
|
|
# allow local overrides of env variables
|
|
|
|
if [ -f $RC_DIR/localrc ]; then
|
|
|
|
source $RC_DIR/localrc
|
|
|
|
fi
|
|
|
|
|
2011-10-14 09:31:09 -07:00
|
|
|
# Specify a comma-separated list of uec images to download and install into glance.
|
2011-12-08 16:22:51 -05:00
|
|
|
# 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.
|
2012-01-23 11:17:27 -06:00
|
|
|
# example:
|
2011-12-08 16:22:51 -05:00
|
|
|
# http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-armel-disk1.img
|
|
|
|
# http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-rootfs.img.gz
|
2011-12-08 16:23:27 -05:00
|
|
|
#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
|
|
|
|
#IMAGE_URLS="http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img" # cirros full disk image
|
2012-07-06 17:49:12 -07:00
|
|
|
#
|
|
|
|
# Set default image based on LIBVIRT_TYPE or VIRT_DRIVER, which may be set in localrc
|
|
|
|
# but allow DEFAULT_IMAGE_NAME and IMAGE_URLS to be set directly in localrc, too.
|
|
|
|
case "$VIRT_DRIVER" in
|
|
|
|
openvz) # OpenVZ uses its own format of image, and does not support uec style images
|
|
|
|
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-ubuntu-11.10-x86_64}
|
|
|
|
IMAGE_URLS=${IMAGE_URLS:-"http://download.openvz.org/template/precreated/ubuntu-11.10-x86_64.tar.gz"};;
|
|
|
|
libvirt)
|
|
|
|
case "$LIBVIRT_TYPE" in
|
|
|
|
lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc
|
|
|
|
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-rootfs}
|
|
|
|
IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-rootfs.img.gz"};;
|
|
|
|
*) # otherwise, use the uec style image (with kernel, ramdisk, disk)
|
|
|
|
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-uec}
|
|
|
|
IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz"};;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
*) # otherwise, use the uec style image (with kernel, ramdisk, disk)
|
|
|
|
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-uec}
|
|
|
|
IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz"};;
|
if using lxc, use cirros rootfs image
The cirros 'uec' image contains a kernel, a ramdisk, and a rootfs.
However, the rootfs is empty. cirros copies its ramdisk to it on its first
boot. That means, if you try this with lxc, there is no filesystem for
lxc to boot.
So, in the case of lxc, import the rootfs image, which is a populated
ext3 filesystem, which is what nova lxc expects.
Change-Id: I3ada380c61044a08697b0a964a962b269ea5224c
2011-12-16 10:29:10 -05:00
|
|
|
esac
|
2011-10-13 23:03:23 -07:00
|
|
|
|
2012-07-15 10:22:45 +01:00
|
|
|
# 5Gb default volume backing file size
|
|
|
|
VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-5130M}
|