blob: bd4fe14c73ed8c95afda543690fd889f6279f461 [file] [log] [blame]
Dean Troyer0bd24102012-03-08 00:33:54 -06001# Find the other rc files
2RC_DIR=$(cd $(dirname "$BASH_SOURCE") && pwd)
3
Dean Troyer1214d9d2012-07-06 09:39:07 -05004# Destination path for installation
5DEST=/opt/stack
6
Chmouel Boudjnah8da56562012-03-09 14:21:40 +00007# Specify which services to launch. These generally correspond to
8# screen tabs. If you like to add other services that are not enabled
9# by default you can append them in your ENABLED_SERVICES variable in
10# your localrc. For example for swift you can just add this in your
11# localrc to add it with the other services:
Chmouel Boudjnahc4cd4142012-06-27 11:01:40 +020012# ENABLED_SERVICES+=,swift
13#
14# If you like to explicitly remove services you can add a -$service in
15# ENABLED_SERVICES, for example in your localrc to install all defaults but not
John Griffithd586e1c2012-07-11 13:21:08 -060016# cinder you would just need to set this :
17# ENABLED_SERVICES+=,-cinder
18ENABLED_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
Monty Taylord5b18ec2012-07-26 09:21:01 -050023# Base GIT Repo URL
24# Another option is http://review.openstack.org/p
25GIT_BASE=https://github.com
26
Dean Troyer67787e62012-05-02 11:48:15 -050027# volume service
Monty Taylord5b18ec2012-07-26 09:21:01 -050028CINDER_REPO=${GIT_BASE}/openstack/cinder
Dean Troyer67787e62012-05-02 11:48:15 -050029CINDER_BRANCH=master
30
31# volume client
Monty Taylord5b18ec2012-07-26 09:21:01 -050032CINDERCLIENT_REPO=${GIT_BASE}/openstack/python-cinderclient
Dean Troyer67787e62012-05-02 11:48:15 -050033CINDERCLIENT_BRANCH=master
34
Anthony Young096fb5a2011-09-26 13:14:46 -070035# compute service
Monty Taylord5b18ec2012-07-26 09:21:01 -050036NOVA_REPO=${GIT_BASE}/openstack/nova.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080037NOVA_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070038
Chmouel Boudjnah28fa4e82011-11-01 12:30:55 +010039# storage service
Monty Taylord5b18ec2012-07-26 09:21:01 -050040SWIFT_REPO=${GIT_BASE}/openstack/swift.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080041SWIFT_BRANCH=master
Joe Gordon42b1aa92012-05-24 14:11:01 -070042SWIFT3_REPO=https://github.com/fujita/swift3.git
43SWIFT3_BRANCH=master
44
Chmouel Boudjnah28fa4e82011-11-01 12:30:55 +010045
Chmouel Boudjnahfda9df82012-05-22 10:27:08 +000046# python swift client library
Monty Taylord5b18ec2012-07-26 09:21:01 -050047SWIFTCLIENT_REPO=${GIT_BASE}/openstack/python-swiftclient
Chmouel Boudjnahfda9df82012-05-22 10:27:08 +000048SWIFTCLIENT_BRANCH=master
49
Anthony Young096fb5a2011-09-26 13:14:46 -070050# image catalog service
Monty Taylord5b18ec2012-07-26 09:21:01 -050051GLANCE_REPO=${GIT_BASE}/openstack/glance.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080052GLANCE_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070053
Dean Troyer45495252012-04-13 13:16:38 -050054# python glance client library
Monty Taylord5b18ec2012-07-26 09:21:01 -050055GLANCECLIENT_REPO=${GIT_BASE}/openstack/python-glanceclient
Dean Troyer45495252012-04-13 13:16:38 -050056GLANCECLIENT_BRANCH=master
57
Anthony Young096fb5a2011-09-26 13:14:46 -070058# unified auth system (manages accounts/tokens)
Monty Taylord5b18ec2012-07-26 09:21:01 -050059KEYSTONE_REPO=${GIT_BASE}/openstack/keystone.git
Dean Troyer6a3f6072012-02-16 16:31:24 -060060KEYSTONE_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070061
62# a websockets/html5 or flash powered VNC console for vm instances
Anthony Young220d9382012-05-04 10:19:44 -070063NOVNC_REPO=https://github.com/kanaka/noVNC.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080064NOVNC_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070065
66# django powered web control panel for openstack
Monty Taylord5b18ec2012-07-26 09:21:01 -050067HORIZON_REPO=${GIT_BASE}/openstack/horizon.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080068HORIZON_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070069
Tres Henryca85b792011-10-28 14:00:21 -070070# python client library to nova that horizon (and others) use
Monty Taylord5b18ec2012-07-26 09:21:01 -050071NOVACLIENT_REPO=${GIT_BASE}/openstack/python-novaclient.git
Anthony Young248221a2011-09-27 11:25:18 -070072NOVACLIENT_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070073
Andrew Bogott77a4e3a2012-05-01 00:07:29 -050074# Shared openstack python client library
Monty Taylord5b18ec2012-07-26 09:21:01 -050075OPENSTACKCLIENT_REPO=${GIT_BASE}/openstack/python-openstackclient.git
Andrew Bogott77a4e3a2012-05-01 00:07:29 -050076OPENSTACKCLIENT_BRANCH=master
77
Anthony Young52e631d2011-12-27 22:22:14 -080078# python keystone client library to nova that horizon uses
Monty Taylord5b18ec2012-07-26 09:21:01 -050079KEYSTONECLIENT_REPO=${GIT_BASE}/openstack/python-keystoneclient
Anthony Young52e631d2011-12-27 22:22:14 -080080KEYSTONECLIENT_BRANCH=master
81
Brad Hall1bfa3d52011-10-27 18:18:20 -070082# quantum service
Monty Taylord5b18ec2012-07-26 09:21:01 -050083QUANTUM_REPO=${GIT_BASE}/openstack/quantum
Jesse Andrews9c7c9082011-11-23 10:10:53 -080084QUANTUM_BRANCH=master
Brad Hall1bfa3d52011-10-27 18:18:20 -070085
Dave Lapsley5a09c922012-01-25 17:22:15 -050086# quantum client
Monty Taylord5b18ec2012-07-26 09:21:01 -050087QUANTUM_CLIENT_REPO=${GIT_BASE}/openstack/python-quantumclient
Dave Lapsley5a09c922012-01-25 17:22:15 -050088QUANTUM_CLIENT_BRANCH=master
89
Dean Troyer608bb122012-01-10 14:43:17 -060090# Tempest test suite
Monty Taylord5b18ec2012-07-26 09:21:01 -050091TEMPEST_REPO=${GIT_BASE}/openstack/tempest.git
Dean Troyer608bb122012-01-10 14:43:17 -060092TEMPEST_BRANCH=master
Dean Troyerb0e57cf2011-11-04 12:13:43 -050093
Jason Kölker64a90662012-01-23 11:17:27 -060094# melange service
Monty Taylord5b18ec2012-07-26 09:21:01 -050095MELANGE_REPO=${GIT_BASE}/openstack/melange.git
Jason Kölker64a90662012-01-23 11:17:27 -060096MELANGE_BRANCH=master
97
98# python melange client library
Monty Taylord5b18ec2012-07-26 09:21:01 -050099MELANGECLIENT_REPO=${GIT_BASE}/openstack/python-melangeclient.git
Jason Kölker64a90662012-01-23 11:17:27 -0600100MELANGECLIENT_BRANCH=master
101
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700102# Nova hypervisor configuration. We default to libvirt with **kvm** but will
103# drop back to **qemu** if we are unable to load the kvm module. ``stack.sh`` can
104# also install an **LXC** or **OpenVZ** based system.
105VIRT_DRIVER=${VIRT_DRIVER:-libvirt}
106LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm}
107
108# allow local overrides of env variables
109if [ -f $RC_DIR/localrc ]; then
110 source $RC_DIR/localrc
111fi
112
Anthony Young120f4862011-10-14 09:31:09 -0700113# Specify a comma-separated list of uec images to download and install into glance.
Scott Moser4f6d7b62011-12-08 16:22:51 -0500114# supported urls here are:
115# * "uec-style" images:
116# If the file ends in .tar.gz, uncompress the tarball and and select the first
117# .img file inside it as the image. If present, use "*-vmlinuz*" as the kernel
118# and "*-initrd*" as the ramdisk
119# example: http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-amd64.tar.gz
120# * disk image (*.img,*.img.gz)
121# if file ends in .img, then it will be uploaded and registered as a to
122# glance as a disk image. If it ends in .gz, it is uncompressed first.
Jason Kölker64a90662012-01-23 11:17:27 -0600123# example:
Scott Moser4f6d7b62011-12-08 16:22:51 -0500124# http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-armel-disk1.img
125# http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-rootfs.img.gz
Scott Moser3584e552011-12-08 16:23:27 -0500126#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
127#IMAGE_URLS="http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img" # cirros full disk image
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700128#
129# Set default image based on LIBVIRT_TYPE or VIRT_DRIVER, which may be set in localrc
130# but allow DEFAULT_IMAGE_NAME and IMAGE_URLS to be set directly in localrc, too.
131case "$VIRT_DRIVER" in
132 openvz) # OpenVZ uses its own format of image, and does not support uec style images
133 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-ubuntu-11.10-x86_64}
134 IMAGE_URLS=${IMAGE_URLS:-"http://download.openvz.org/template/precreated/ubuntu-11.10-x86_64.tar.gz"};;
135 libvirt)
136 case "$LIBVIRT_TYPE" in
137 lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc
138 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-rootfs}
139 IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-rootfs.img.gz"};;
140 *) # otherwise, use the uec style image (with kernel, ramdisk, disk)
141 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-uec}
142 IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz"};;
143 esac
144 ;;
145 *) # otherwise, use the uec style image (with kernel, ramdisk, disk)
146 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-uec}
147 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 -0500148esac
Anthony Young0ab1d462011-10-13 23:03:23 -0700149
Eoghan Glynn9cb17762012-07-15 10:22:45 +0100150# 5Gb default volume backing file size
151VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-5130M}