blob: 39d34b0b5cb31af24c7e0dc657ce8c546c589b04 [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
Dean Troyerc1b486a2012-11-05 14:26:09 -06009# Select the default database
10DATABASE_TYPE=mysql
11
Chmouel Boudjnah8da56562012-03-09 14:21:40 +000012# Specify which services to launch. These generally correspond to
Dean Troyer4a43b7b2012-08-28 17:43:40 -050013# screen tabs. To change the default list, use the ``enable_service`` and
14# ``disable_service`` functions in ``localrc``.
15# For example, to enable Swift add this to ``localrc``:
16# enable_service swift
Dan Smithd57ccf02012-11-15 10:09:33 -080017ENABLED_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,$DATABASE_TYPE
Chmouel Boudjnah8da56562012-03-09 14:21:40 +000018
Dean Troyer67787e62012-05-02 11:48:15 -050019# Set the default Nova APIs to enable
Andrew Laski6e7e1c92012-10-31 16:11:37 -040020NOVA_ENABLED_APIS=ec2,osapi_compute,metadata
Dean Troyer67787e62012-05-02 11:48:15 -050021
Dean Troyer4a43b7b2012-08-28 17:43:40 -050022# Repositories
23# ------------
24
Monty Taylord5b18ec2012-07-26 09:21:01 -050025# Base GIT Repo URL
26# Another option is http://review.openstack.org/p
27GIT_BASE=https://github.com
28
John H. Tran93361642012-07-26 11:22:05 -070029# metering service
Lianhao Luaf5cd772012-11-12 16:36:42 +080030CEILOMETER_REPO=${GIT_BASE}/openstack/ceilometer.git
John H. Tran93361642012-07-26 11:22:05 -070031CEILOMETER_BRANCH=master
32
Dean Troyer67787e62012-05-02 11:48:15 -050033# volume service
Monty Taylord5b18ec2012-07-26 09:21:01 -050034CINDER_REPO=${GIT_BASE}/openstack/cinder
Dean Troyer67787e62012-05-02 11:48:15 -050035CINDER_BRANCH=master
36
37# volume client
Monty Taylord5b18ec2012-07-26 09:21:01 -050038CINDERCLIENT_REPO=${GIT_BASE}/openstack/python-cinderclient
Dean Troyer67787e62012-05-02 11:48:15 -050039CINDERCLIENT_BRANCH=master
40
Anthony Young096fb5a2011-09-26 13:14:46 -070041# compute service
Monty Taylord5b18ec2012-07-26 09:21:01 -050042NOVA_REPO=${GIT_BASE}/openstack/nova.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080043NOVA_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070044
Chmouel Boudjnah28fa4e82011-11-01 12:30:55 +010045# storage service
Monty Taylord5b18ec2012-07-26 09:21:01 -050046SWIFT_REPO=${GIT_BASE}/openstack/swift.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080047SWIFT_BRANCH=master
Joe Gordon42b1aa92012-05-24 14:11:01 -070048SWIFT3_REPO=https://github.com/fujita/swift3.git
49SWIFT3_BRANCH=master
50
Chmouel Boudjnahfda9df82012-05-22 10:27:08 +000051# python swift client library
Monty Taylord5b18ec2012-07-26 09:21:01 -050052SWIFTCLIENT_REPO=${GIT_BASE}/openstack/python-swiftclient
Chmouel Boudjnahfda9df82012-05-22 10:27:08 +000053SWIFTCLIENT_BRANCH=master
54
Anthony Young096fb5a2011-09-26 13:14:46 -070055# image catalog service
Monty Taylord5b18ec2012-07-26 09:21:01 -050056GLANCE_REPO=${GIT_BASE}/openstack/glance.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080057GLANCE_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070058
Dean Troyer45495252012-04-13 13:16:38 -050059# python glance client library
Monty Taylord5b18ec2012-07-26 09:21:01 -050060GLANCECLIENT_REPO=${GIT_BASE}/openstack/python-glanceclient
Dean Troyer45495252012-04-13 13:16:38 -050061GLANCECLIENT_BRANCH=master
62
Anthony Young096fb5a2011-09-26 13:14:46 -070063# unified auth system (manages accounts/tokens)
Monty Taylord5b18ec2012-07-26 09:21:01 -050064KEYSTONE_REPO=${GIT_BASE}/openstack/keystone.git
Dean Troyer6a3f6072012-02-16 16:31:24 -060065KEYSTONE_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070066
67# a websockets/html5 or flash powered VNC console for vm instances
Anthony Young220d9382012-05-04 10:19:44 -070068NOVNC_REPO=https://github.com/kanaka/noVNC.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080069NOVNC_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070070
71# django powered web control panel for openstack
Monty Taylord5b18ec2012-07-26 09:21:01 -050072HORIZON_REPO=${GIT_BASE}/openstack/horizon.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080073HORIZON_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070074
Tres Henryca85b792011-10-28 14:00:21 -070075# python client library to nova that horizon (and others) use
Monty Taylord5b18ec2012-07-26 09:21:01 -050076NOVACLIENT_REPO=${GIT_BASE}/openstack/python-novaclient.git
Anthony Young248221a2011-09-27 11:25:18 -070077NOVACLIENT_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070078
Dean Troyer9f61d292012-11-26 18:56:20 +000079# consolidated openstack python client
80OPENSTACKCLIENT_REPO=${GIT_BASE}/openstack/python-openstackclient.git
81OPENSTACKCLIENT_BRANCH=master
82
Anthony Young52e631d2011-12-27 22:22:14 -080083# python keystone client library to nova that horizon uses
Monty Taylord5b18ec2012-07-26 09:21:01 -050084KEYSTONECLIENT_REPO=${GIT_BASE}/openstack/python-keystoneclient
Anthony Young52e631d2011-12-27 22:22:14 -080085KEYSTONECLIENT_BRANCH=master
86
Brad Hall1bfa3d52011-10-27 18:18:20 -070087# quantum service
Monty Taylord5b18ec2012-07-26 09:21:01 -050088QUANTUM_REPO=${GIT_BASE}/openstack/quantum
Jesse Andrews9c7c9082011-11-23 10:10:53 -080089QUANTUM_BRANCH=master
Brad Hall1bfa3d52011-10-27 18:18:20 -070090
Dave Lapsley5a09c922012-01-25 17:22:15 -050091# quantum client
Monty Taylord5b18ec2012-07-26 09:21:01 -050092QUANTUM_CLIENT_REPO=${GIT_BASE}/openstack/python-quantumclient
Dave Lapsley5a09c922012-01-25 17:22:15 -050093QUANTUM_CLIENT_BRANCH=master
94
Dean Troyer608bb122012-01-10 14:43:17 -060095# Tempest test suite
Monty Taylord5b18ec2012-07-26 09:21:01 -050096TEMPEST_REPO=${GIT_BASE}/openstack/tempest.git
Dean Troyer608bb122012-01-10 14:43:17 -060097TEMPEST_BRANCH=master
Dean Troyerb0e57cf2011-11-04 12:13:43 -050098
Steve Bakerbfdad752012-08-18 09:00:42 +120099# heat service
Steven Hardy9a27dd82012-12-03 12:41:02 +0000100HEAT_REPO=${GIT_BASE}/openstack/heat.git
Steve Bakerbfdad752012-08-18 09:00:42 +1200101HEAT_BRANCH=master
102
Steve Baker32761a42012-11-05 09:57:57 +1300103# python heat client library
104HEATCLIENT_REPO=${GIT_BASE}/heat-api/python-heatclient.git
105HEATCLIENT_BRANCH=master
106
Yoshihiro Kaneko602cf9b2012-07-23 06:27:36 +0000107# ryu service
108RYU_REPO=https://github.com/osrg/ryu.git
109RYU_BRANCH=master
110
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700111# Nova hypervisor configuration. We default to libvirt with **kvm** but will
112# drop back to **qemu** if we are unable to load the kvm module. ``stack.sh`` can
113# also install an **LXC** or **OpenVZ** based system.
114VIRT_DRIVER=${VIRT_DRIVER:-libvirt}
115LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm}
116
117# allow local overrides of env variables
118if [ -f $RC_DIR/localrc ]; then
119 source $RC_DIR/localrc
120fi
121
Dean Troyer4a43b7b2012-08-28 17:43:40 -0500122# Specify a comma-separated list of UEC images to download and install into glance.
Scott Moser4f6d7b62011-12-08 16:22:51 -0500123# supported urls here are:
124# * "uec-style" images:
125# If the file ends in .tar.gz, uncompress the tarball and and select the first
126# .img file inside it as the image. If present, use "*-vmlinuz*" as the kernel
127# and "*-initrd*" as the ramdisk
128# example: http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-amd64.tar.gz
129# * disk image (*.img,*.img.gz)
130# if file ends in .img, then it will be uploaded and registered as a to
131# glance as a disk image. If it ends in .gz, it is uncompressed first.
Jason Kölker64a90662012-01-23 11:17:27 -0600132# example:
Scott Moser4f6d7b62011-12-08 16:22:51 -0500133# http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-armel-disk1.img
134# 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 -0500135# * OpenVZ image:
136# OpenVZ uses its own format of image, and does not support UEC style images
137
Scott Moser3584e552011-12-08 16:23:27 -0500138#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
139#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 -0500140
141# Set default image based on ``VIRT_DRIVER`` and ``LIBVIRT_TYPE``, either of
Nachi Uenofda946e2012-10-24 17:26:02 -0700142# which may be set in ``localrc``. Also allow ``DEFAULT_IMAGE_NAME`` and
Dean Troyer4a43b7b2012-08-28 17:43:40 -0500143# ``IMAGE_URLS`` to be set directly in ``localrc``.
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700144case "$VIRT_DRIVER" in
Nachi Uenofda946e2012-10-24 17:26:02 -0700145 openvz)
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700146 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-ubuntu-11.10-x86_64}
147 IMAGE_URLS=${IMAGE_URLS:-"http://download.openvz.org/template/precreated/ubuntu-11.10-x86_64.tar.gz"};;
148 libvirt)
149 case "$LIBVIRT_TYPE" in
150 lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc
151 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-rootfs}
152 IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-rootfs.img.gz"};;
153 *) # otherwise, use the uec style image (with kernel, ramdisk, disk)
154 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-uec}
155 IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz"};;
156 esac
157 ;;
158 *) # otherwise, use the uec style image (with kernel, ramdisk, disk)
159 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-uec}
160 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 -0500161esac
Anthony Young0ab1d462011-10-13 23:03:23 -0700162
Eoghan Glynn9cb17762012-07-15 10:22:45 +0100163# 5Gb default volume backing file size
164VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-5130M}
Nachi Uenofda946e2012-10-24 17:26:02 -0700165
166PRIVATE_NETWORK_NAME=${PRIVATE_NETWORK_NAME:-"private"}
167PUBLIC_NETWORK_NAME=${PUBLIC_NETWORK_NAME:-"nova"}