blob: 3002c463439c6dfeac4758538bc2811b48e338bc [file] [log] [blame]
Dean Troyer4a43b7b2012-08-28 17:43:40 -05001# stackrc
2#
Dean Troyer0bd24102012-03-08 00:33:54 -06003# Find the other rc files
4RC_DIR=$(cd $(dirname "$BASH_SOURCE") && pwd)
5
Dean Troyer1214d9d2012-07-06 09:39:07 -05006# Destination path for installation
7DEST=/opt/stack
8
Chmouel Boudjnah8da56562012-03-09 14:21:40 +00009# Specify which services to launch. These generally correspond to
Dean Troyer4a43b7b2012-08-28 17:43:40 -050010# screen tabs. To change the default list, use the ``enable_service`` and
11# ``disable_service`` functions in ``localrc``.
12# For example, to enable Swift add this to ``localrc``:
13# enable_service swift
Chmouel Boudjnahc4cd4142012-06-27 11:01:40 +020014#
Dean Troyer4a43b7b2012-08-28 17:43:40 -050015# And to disable Cinder and use Nova Volumes instead:
16# disable_service c-api c-sch c-vol cinder
17# enable_service n-vol
John Griffithd586e1c2012-07-11 13:21:08 -060018ENABLED_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
Chmouel Boudjnah8da56562012-03-09 14:21:40 +000019
Dean Troyer67787e62012-05-02 11:48:15 -050020# Set the default Nova APIs to enable
21NOVA_ENABLED_APIS=ec2,osapi_compute,osapi_volume,metadata
22
Dean Troyer4a43b7b2012-08-28 17:43:40 -050023# Repositories
24# ------------
25
Monty Taylord5b18ec2012-07-26 09:21:01 -050026# Base GIT Repo URL
27# Another option is http://review.openstack.org/p
28GIT_BASE=https://github.com
29
John H. Tran93361642012-07-26 11:22:05 -070030# metering service
31CEILOMETER_REPO=https://github.com/stackforge/ceilometer.git
32CEILOMETER_BRANCH=master
33
Dean Troyer67787e62012-05-02 11:48:15 -050034# volume service
Monty Taylord5b18ec2012-07-26 09:21:01 -050035CINDER_REPO=${GIT_BASE}/openstack/cinder
Dean Troyer67787e62012-05-02 11:48:15 -050036CINDER_BRANCH=master
37
38# volume client
Monty Taylord5b18ec2012-07-26 09:21:01 -050039CINDERCLIENT_REPO=${GIT_BASE}/openstack/python-cinderclient
Dean Troyer67787e62012-05-02 11:48:15 -050040CINDERCLIENT_BRANCH=master
41
Anthony Young096fb5a2011-09-26 13:14:46 -070042# compute service
Monty Taylord5b18ec2012-07-26 09:21:01 -050043NOVA_REPO=${GIT_BASE}/openstack/nova.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080044NOVA_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070045
Chmouel Boudjnah28fa4e82011-11-01 12:30:55 +010046# storage service
Monty Taylord5b18ec2012-07-26 09:21:01 -050047SWIFT_REPO=${GIT_BASE}/openstack/swift.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080048SWIFT_BRANCH=master
Joe Gordon42b1aa92012-05-24 14:11:01 -070049SWIFT3_REPO=https://github.com/fujita/swift3.git
50SWIFT3_BRANCH=master
51
Chmouel Boudjnahfda9df82012-05-22 10:27:08 +000052# python swift client library
Monty Taylord5b18ec2012-07-26 09:21:01 -050053SWIFTCLIENT_REPO=${GIT_BASE}/openstack/python-swiftclient
Chmouel Boudjnahfda9df82012-05-22 10:27:08 +000054SWIFTCLIENT_BRANCH=master
55
Anthony Young096fb5a2011-09-26 13:14:46 -070056# image catalog service
Monty Taylord5b18ec2012-07-26 09:21:01 -050057GLANCE_REPO=${GIT_BASE}/openstack/glance.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080058GLANCE_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070059
Dean Troyer45495252012-04-13 13:16:38 -050060# python glance client library
Monty Taylord5b18ec2012-07-26 09:21:01 -050061GLANCECLIENT_REPO=${GIT_BASE}/openstack/python-glanceclient
Dean Troyer45495252012-04-13 13:16:38 -050062GLANCECLIENT_BRANCH=master
63
Anthony Young096fb5a2011-09-26 13:14:46 -070064# unified auth system (manages accounts/tokens)
Monty Taylord5b18ec2012-07-26 09:21:01 -050065KEYSTONE_REPO=${GIT_BASE}/openstack/keystone.git
Dean Troyer6a3f6072012-02-16 16:31:24 -060066KEYSTONE_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070067
68# a websockets/html5 or flash powered VNC console for vm instances
Anthony Young220d9382012-05-04 10:19:44 -070069NOVNC_REPO=https://github.com/kanaka/noVNC.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080070NOVNC_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070071
72# django powered web control panel for openstack
Monty Taylord5b18ec2012-07-26 09:21:01 -050073HORIZON_REPO=${GIT_BASE}/openstack/horizon.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080074HORIZON_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070075
Tres Henryca85b792011-10-28 14:00:21 -070076# python client library to nova that horizon (and others) use
Monty Taylord5b18ec2012-07-26 09:21:01 -050077NOVACLIENT_REPO=${GIT_BASE}/openstack/python-novaclient.git
Anthony Young248221a2011-09-27 11:25:18 -070078NOVACLIENT_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070079
Dean Troyer4a43b7b2012-08-28 17:43:40 -050080# consolidated openstack python client
Monty Taylord5b18ec2012-07-26 09:21:01 -050081OPENSTACKCLIENT_REPO=${GIT_BASE}/openstack/python-openstackclient.git
Andrew Bogott77a4e3a2012-05-01 00:07:29 -050082OPENSTACKCLIENT_BRANCH=master
83
Anthony Young52e631d2011-12-27 22:22:14 -080084# python keystone client library to nova that horizon uses
Monty Taylord5b18ec2012-07-26 09:21:01 -050085KEYSTONECLIENT_REPO=${GIT_BASE}/openstack/python-keystoneclient
Anthony Young52e631d2011-12-27 22:22:14 -080086KEYSTONECLIENT_BRANCH=master
87
Brad Hall1bfa3d52011-10-27 18:18:20 -070088# quantum service
Monty Taylord5b18ec2012-07-26 09:21:01 -050089QUANTUM_REPO=${GIT_BASE}/openstack/quantum
Jesse Andrews9c7c9082011-11-23 10:10:53 -080090QUANTUM_BRANCH=master
Brad Hall1bfa3d52011-10-27 18:18:20 -070091
Dave Lapsley5a09c922012-01-25 17:22:15 -050092# quantum client
Monty Taylord5b18ec2012-07-26 09:21:01 -050093QUANTUM_CLIENT_REPO=${GIT_BASE}/openstack/python-quantumclient
Dave Lapsley5a09c922012-01-25 17:22:15 -050094QUANTUM_CLIENT_BRANCH=master
95
Dean Troyer608bb122012-01-10 14:43:17 -060096# Tempest test suite
Monty Taylord5b18ec2012-07-26 09:21:01 -050097TEMPEST_REPO=${GIT_BASE}/openstack/tempest.git
Dean Troyer608bb122012-01-10 14:43:17 -060098TEMPEST_BRANCH=master
Dean Troyerb0e57cf2011-11-04 12:13:43 -050099
Steve Bakerbfdad752012-08-18 09:00:42 +1200100# heat service
101HEAT_REPO=${GIT_BASE}/heat-api/heat.git
102HEAT_BRANCH=master
103
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700104# Nova hypervisor configuration. We default to libvirt with **kvm** but will
105# drop back to **qemu** if we are unable to load the kvm module. ``stack.sh`` can
106# also install an **LXC** or **OpenVZ** based system.
107VIRT_DRIVER=${VIRT_DRIVER:-libvirt}
108LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm}
109
110# allow local overrides of env variables
111if [ -f $RC_DIR/localrc ]; then
112 source $RC_DIR/localrc
113fi
114
Dean Troyer4a43b7b2012-08-28 17:43:40 -0500115# Specify a comma-separated list of UEC images to download and install into glance.
Scott Moser4f6d7b62011-12-08 16:22:51 -0500116# supported urls here are:
117# * "uec-style" images:
118# If the file ends in .tar.gz, uncompress the tarball and and select the first
119# .img file inside it as the image. If present, use "*-vmlinuz*" as the kernel
120# and "*-initrd*" as the ramdisk
121# example: http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-amd64.tar.gz
122# * disk image (*.img,*.img.gz)
123# if file ends in .img, then it will be uploaded and registered as a to
124# glance as a disk image. If it ends in .gz, it is uncompressed first.
Jason Kölker64a90662012-01-23 11:17:27 -0600125# example:
Scott Moser4f6d7b62011-12-08 16:22:51 -0500126# http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-armel-disk1.img
127# http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-rootfs.img.gz
Dean Troyer4a43b7b2012-08-28 17:43:40 -0500128# * OpenVZ image:
129# OpenVZ uses its own format of image, and does not support UEC style images
130
Scott Moser3584e552011-12-08 16:23:27 -0500131#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
132#IMAGE_URLS="http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img" # cirros full disk image
Dean Troyer4a43b7b2012-08-28 17:43:40 -0500133
134# Set default image based on ``VIRT_DRIVER`` and ``LIBVIRT_TYPE``, either of
135# which may be set in ``localrc``. Also allow ``DEFAULT_IMAGE_NAME`` and
136# ``IMAGE_URLS`` to be set directly in ``localrc``.
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700137case "$VIRT_DRIVER" in
Dean Troyer4a43b7b2012-08-28 17:43:40 -0500138 openvz)
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700139 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-ubuntu-11.10-x86_64}
140 IMAGE_URLS=${IMAGE_URLS:-"http://download.openvz.org/template/precreated/ubuntu-11.10-x86_64.tar.gz"};;
141 libvirt)
142 case "$LIBVIRT_TYPE" in
143 lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc
144 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-rootfs}
145 IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-rootfs.img.gz"};;
146 *) # otherwise, use the uec style image (with kernel, ramdisk, disk)
147 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-uec}
148 IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz"};;
149 esac
150 ;;
151 *) # otherwise, use the uec style image (with kernel, ramdisk, disk)
152 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-uec}
153 IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz"};;
Scott Mosera3682182011-12-16 10:29:10 -0500154esac
Anthony Young0ab1d462011-10-13 23:03:23 -0700155
Eoghan Glynn9cb17762012-07-15 10:22:45 +0100156# 5Gb default volume backing file size
157VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-5130M}