2012-03-08 00:33:54 -06:00
|
|
|
# Find the other rc files
|
|
|
|
RC_DIR=$(cd $(dirname "$BASH_SOURCE") && pwd)
|
|
|
|
|
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:
|
|
|
|
# ENABLED_SERVICES="$ENABLED_SERVICES,swift"
|
|
|
|
ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,mysql,rabbit
|
|
|
|
|
2011-09-26 13:14:46 -07:00
|
|
|
# compute service
|
2011-11-14 10:55:47 -08:00
|
|
|
NOVA_REPO=https://github.com/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
|
|
|
|
SWIFT_REPO=https://github.com/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
|
|
|
|
2011-09-26 13:14:46 -07:00
|
|
|
# image catalog service
|
2011-11-14 10:55:47 -08:00
|
|
|
GLANCE_REPO=https://github.com/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
|
|
|
|
GLANCECLIENT_REPO=https://github.com/openstack/python-glanceclient
|
|
|
|
GLANCECLIENT_BRANCH=master
|
|
|
|
|
2011-09-26 13:14:46 -07:00
|
|
|
# unified auth system (manages accounts/tokens)
|
2012-02-08 23:33:41 +00:00
|
|
|
KEYSTONE_REPO=https://github.com/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
|
2011-10-28 14:00:21 -07:00
|
|
|
HORIZON_REPO=https://github.com/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
|
2011-11-20 09:55:44 -08:00
|
|
|
NOVACLIENT_REPO=https://github.com/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
|
|
|
|
OPENSTACKCLIENT_REPO=https://github.com/openstack/python-openstackclient.git
|
|
|
|
OPENSTACKCLIENT_BRANCH=master
|
|
|
|
|
2011-12-27 22:22:14 -08:00
|
|
|
# python keystone client library to nova that horizon uses
|
|
|
|
KEYSTONECLIENT_REPO=https://github.com/openstack/python-keystoneclient
|
|
|
|
KEYSTONECLIENT_BRANCH=master
|
|
|
|
|
2011-10-27 18:18:20 -07:00
|
|
|
# quantum service
|
|
|
|
QUANTUM_REPO=https://github.com/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
|
|
|
|
QUANTUM_CLIENT_REPO=https://github.com/openstack/python-quantumclient
|
|
|
|
QUANTUM_CLIENT_BRANCH=master
|
|
|
|
|
2012-01-10 14:43:17 -06:00
|
|
|
# Tempest test suite
|
|
|
|
TEMPEST_REPO=https://github.com/openstack/tempest.git
|
|
|
|
TEMPEST_BRANCH=master
|
2011-11-04 12:13:43 -05:00
|
|
|
|
2012-01-23 11:17:27 -06:00
|
|
|
# melange service
|
|
|
|
MELANGE_REPO=https://github.com/openstack/melange.git
|
|
|
|
MELANGE_BRANCH=master
|
|
|
|
|
|
|
|
# python melange client library
|
|
|
|
MELANGECLIENT_REPO=https://github.com/openstack/python-melangeclient.git
|
|
|
|
MELANGECLIENT_BRANCH=master
|
|
|
|
|
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
|
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
|
|
|
case "$LIBVIRT_TYPE" in
|
|
|
|
lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc
|
|
|
|
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)
|
|
|
|
IMAGE_URLS="http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz";;
|
|
|
|
esac
|
2011-10-13 23:03:23 -07:00
|
|
|
|
2011-09-28 15:24:57 -07:00
|
|
|
# allow local overrides of env variables
|
2012-03-08 00:33:54 -06:00
|
|
|
if [ -f $RC_DIR/localrc ]; then
|
|
|
|
source $RC_DIR/localrc
|
2011-09-28 15:24:57 -07:00
|
|
|
fi
|