blob: 789fc82d767c0a8360ea55e75e9b0c8939038d0c [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 Troyerc83a7e12012-11-29 11:47:58 -06009# Destination for working data
10DATA_DIR=${DEST}/data
11
Dean Troyerc1b486a2012-11-05 14:26:09 -060012# Select the default database
13DATABASE_TYPE=mysql
14
Dean Troyer74759aa2013-01-24 14:19:55 -060015# Determine stack user
16if [[ $EUID -eq 0 ]]; then
17 STACK_USER=stack
18else
19 STACK_USER=$(whoami)
20fi
Attila Fazekas91b8d132013-01-06 22:40:09 +010021
Chmouel Boudjnah8da56562012-03-09 14:21:40 +000022# Specify which services to launch. These generally correspond to
Dean Troyer4a43b7b2012-08-28 17:43:40 -050023# screen tabs. To change the default list, use the ``enable_service`` and
24# ``disable_service`` functions in ``localrc``.
25# For example, to enable Swift add this to ``localrc``:
26# enable_service swift
Sean Dague77f076a2012-12-10 16:49:20 -050027ENABLED_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,tempest,$DATABASE_TYPE
Chmouel Boudjnah8da56562012-03-09 14:21:40 +000028
Dean Troyer67787e62012-05-02 11:48:15 -050029# Set the default Nova APIs to enable
Andrew Laski6e7e1c92012-10-31 16:11:37 -040030NOVA_ENABLED_APIS=ec2,osapi_compute,metadata
Dean Troyer67787e62012-05-02 11:48:15 -050031
Dean Troyer4a43b7b2012-08-28 17:43:40 -050032# Repositories
33# ------------
34
Monty Taylord5b18ec2012-07-26 09:21:01 -050035# Base GIT Repo URL
36# Another option is http://review.openstack.org/p
37GIT_BASE=https://github.com
38
John H. Tran93361642012-07-26 11:22:05 -070039# metering service
Lianhao Luaf5cd772012-11-12 16:36:42 +080040CEILOMETER_REPO=${GIT_BASE}/openstack/ceilometer.git
John H. Tran93361642012-07-26 11:22:05 -070041CEILOMETER_BRANCH=master
42
Yunhong, Jiange583d9b2013-01-09 09:33:07 +080043# ceilometer client library
44CEILOMETERCLIENT_REPO=${GIT_BASE}/openstack/python-ceilometerclient
45CEILOMETERCLIENT_BRANCH=master
46
Dean Troyer67787e62012-05-02 11:48:15 -050047# volume service
Monty Taylord5b18ec2012-07-26 09:21:01 -050048CINDER_REPO=${GIT_BASE}/openstack/cinder
Dean Troyer67787e62012-05-02 11:48:15 -050049CINDER_BRANCH=master
50
51# volume client
Monty Taylord5b18ec2012-07-26 09:21:01 -050052CINDERCLIENT_REPO=${GIT_BASE}/openstack/python-cinderclient
Dean Troyer67787e62012-05-02 11:48:15 -050053CINDERCLIENT_BRANCH=master
54
Anthony Young096fb5a2011-09-26 13:14:46 -070055# compute service
Monty Taylord5b18ec2012-07-26 09:21:01 -050056NOVA_REPO=${GIT_BASE}/openstack/nova.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080057NOVA_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070058
Chmouel Boudjnah28fa4e82011-11-01 12:30:55 +010059# storage service
Monty Taylord5b18ec2012-07-26 09:21:01 -050060SWIFT_REPO=${GIT_BASE}/openstack/swift.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080061SWIFT_BRANCH=master
Joe Gordon42b1aa92012-05-24 14:11:01 -070062SWIFT3_REPO=https://github.com/fujita/swift3.git
63SWIFT3_BRANCH=master
64
Chmouel Boudjnahfda9df82012-05-22 10:27:08 +000065# python swift client library
Monty Taylord5b18ec2012-07-26 09:21:01 -050066SWIFTCLIENT_REPO=${GIT_BASE}/openstack/python-swiftclient
Chmouel Boudjnahfda9df82012-05-22 10:27:08 +000067SWIFTCLIENT_BRANCH=master
68
Anthony Young096fb5a2011-09-26 13:14:46 -070069# image catalog service
Monty Taylord5b18ec2012-07-26 09:21:01 -050070GLANCE_REPO=${GIT_BASE}/openstack/glance.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080071GLANCE_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070072
Dean Troyer45495252012-04-13 13:16:38 -050073# python glance client library
Monty Taylord5b18ec2012-07-26 09:21:01 -050074GLANCECLIENT_REPO=${GIT_BASE}/openstack/python-glanceclient
Dean Troyer45495252012-04-13 13:16:38 -050075GLANCECLIENT_BRANCH=master
76
Anthony Young096fb5a2011-09-26 13:14:46 -070077# unified auth system (manages accounts/tokens)
Monty Taylord5b18ec2012-07-26 09:21:01 -050078KEYSTONE_REPO=${GIT_BASE}/openstack/keystone.git
Dean Troyer6a3f6072012-02-16 16:31:24 -060079KEYSTONE_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070080
81# a websockets/html5 or flash powered VNC console for vm instances
Anthony Young220d9382012-05-04 10:19:44 -070082NOVNC_REPO=https://github.com/kanaka/noVNC.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080083NOVNC_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070084
Daniel P. Berranged10e12f2013-01-03 11:51:42 +000085# a websockets/html5 or flash powered SPICE console for vm instances
86SPICE_REPO=http://anongit.freedesktop.org/git/spice/spice-html5.git
87SPICE_BRANCH=master
88
Anthony Young096fb5a2011-09-26 13:14:46 -070089# django powered web control panel for openstack
Monty Taylord5b18ec2012-07-26 09:21:01 -050090HORIZON_REPO=${GIT_BASE}/openstack/horizon.git
Jesse Andrews9c7c9082011-11-23 10:10:53 -080091HORIZON_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070092
Tres Henryca85b792011-10-28 14:00:21 -070093# python client library to nova that horizon (and others) use
Monty Taylord5b18ec2012-07-26 09:21:01 -050094NOVACLIENT_REPO=${GIT_BASE}/openstack/python-novaclient.git
Anthony Young248221a2011-09-27 11:25:18 -070095NOVACLIENT_BRANCH=master
Anthony Young096fb5a2011-09-26 13:14:46 -070096
Dean Troyer9f61d292012-11-26 18:56:20 +000097# consolidated openstack python client
98OPENSTACKCLIENT_REPO=${GIT_BASE}/openstack/python-openstackclient.git
99OPENSTACKCLIENT_BRANCH=master
100
Anthony Young52e631d2011-12-27 22:22:14 -0800101# python keystone client library to nova that horizon uses
Monty Taylord5b18ec2012-07-26 09:21:01 -0500102KEYSTONECLIENT_REPO=${GIT_BASE}/openstack/python-keystoneclient
Anthony Young52e631d2011-12-27 22:22:14 -0800103KEYSTONECLIENT_BRANCH=master
104
Brad Hall1bfa3d52011-10-27 18:18:20 -0700105# quantum service
Monty Taylord5b18ec2012-07-26 09:21:01 -0500106QUANTUM_REPO=${GIT_BASE}/openstack/quantum
Jesse Andrews9c7c9082011-11-23 10:10:53 -0800107QUANTUM_BRANCH=master
Brad Hall1bfa3d52011-10-27 18:18:20 -0700108
Dave Lapsley5a09c922012-01-25 17:22:15 -0500109# quantum client
Dean Troyer60e9c0a2012-12-06 15:52:52 -0600110QUANTUMCLIENT_REPO=${GIT_BASE}/openstack/python-quantumclient
111QUANTUMCLIENT_BRANCH=master
Dave Lapsley5a09c922012-01-25 17:22:15 -0500112
Dean Troyer608bb122012-01-10 14:43:17 -0600113# Tempest test suite
Monty Taylord5b18ec2012-07-26 09:21:01 -0500114TEMPEST_REPO=${GIT_BASE}/openstack/tempest.git
Dean Troyer608bb122012-01-10 14:43:17 -0600115TEMPEST_BRANCH=master
Dean Troyerb0e57cf2011-11-04 12:13:43 -0500116
Steve Bakerbfdad752012-08-18 09:00:42 +1200117# heat service
Steven Hardy9a27dd82012-12-03 12:41:02 +0000118HEAT_REPO=${GIT_BASE}/openstack/heat.git
Steve Bakerbfdad752012-08-18 09:00:42 +1200119HEAT_BRANCH=master
120
Steve Baker32761a42012-11-05 09:57:57 +1300121# python heat client library
Clint Byrumdf1cf942013-01-10 11:12:45 -0800122HEATCLIENT_REPO=${GIT_BASE}/openstack/python-heatclient.git
Steve Baker32761a42012-11-05 09:57:57 +1300123HEATCLIENT_BRANCH=master
124
Yoshihiro Kaneko602cf9b2012-07-23 06:27:36 +0000125# ryu service
126RYU_REPO=https://github.com/osrg/ryu.git
127RYU_BRANCH=master
128
Devananda van der Veenf35cf912012-11-12 17:58:38 -0800129# diskimage-builder
130BM_IMAGE_BUILD_REPO=https://github.com/stackforge/diskimage-builder.git
131BM_IMAGE_BUILD_BRANCH=master
132
Devananda van der Veen7611c892012-11-23 10:54:54 -0800133# bm_poseur
134# Used to simulate a hardware environment for baremetal
135# Only used if BM_USE_FAKE_ENV is set
136BM_POSEUR_REPO=https://github.com/tripleo/bm_poseur.git
137BM_POSEUR_BRANCH=master
138
139
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700140# Nova hypervisor configuration. We default to libvirt with **kvm** but will
141# drop back to **qemu** if we are unable to load the kvm module. ``stack.sh`` can
142# also install an **LXC** or **OpenVZ** based system.
143VIRT_DRIVER=${VIRT_DRIVER:-libvirt}
144LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm}
145
146# allow local overrides of env variables
147if [ -f $RC_DIR/localrc ]; then
148 source $RC_DIR/localrc
149fi
150
Dean Troyer4a43b7b2012-08-28 17:43:40 -0500151# Specify a comma-separated list of UEC images to download and install into glance.
Scott Moser4f6d7b62011-12-08 16:22:51 -0500152# supported urls here are:
153# * "uec-style" images:
154# If the file ends in .tar.gz, uncompress the tarball and and select the first
155# .img file inside it as the image. If present, use "*-vmlinuz*" as the kernel
156# and "*-initrd*" as the ramdisk
157# example: http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-amd64.tar.gz
158# * disk image (*.img,*.img.gz)
159# if file ends in .img, then it will be uploaded and registered as a to
160# glance as a disk image. If it ends in .gz, it is uncompressed first.
Jason Kölker64a90662012-01-23 11:17:27 -0600161# example:
Scott Moser4f6d7b62011-12-08 16:22:51 -0500162# http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-armel-disk1.img
163# 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 -0500164# * OpenVZ image:
165# OpenVZ uses its own format of image, and does not support UEC style images
166
Scott Moser3584e552011-12-08 16:23:27 -0500167#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
168#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 -0500169
170# Set default image based on ``VIRT_DRIVER`` and ``LIBVIRT_TYPE``, either of
Nachi Uenofda946e2012-10-24 17:26:02 -0700171# which may be set in ``localrc``. Also allow ``DEFAULT_IMAGE_NAME`` and
Dean Troyer4a43b7b2012-08-28 17:43:40 -0500172# ``IMAGE_URLS`` to be set directly in ``localrc``.
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700173case "$VIRT_DRIVER" in
Nachi Uenofda946e2012-10-24 17:26:02 -0700174 openvz)
Devananda van der Veenc0c6f002012-07-06 17:49:12 -0700175 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-ubuntu-11.10-x86_64}
176 IMAGE_URLS=${IMAGE_URLS:-"http://download.openvz.org/template/precreated/ubuntu-11.10-x86_64.tar.gz"};;
177 libvirt)
178 case "$LIBVIRT_TYPE" in
179 lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc
180 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-rootfs}
181 IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-rootfs.img.gz"};;
182 *) # otherwise, use the uec style image (with kernel, ramdisk, disk)
183 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-uec}
184 IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz"};;
185 esac
186 ;;
187 *) # otherwise, use the uec style image (with kernel, ramdisk, disk)
188 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-uec}
189 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 -0500190esac
Anthony Young0ab1d462011-10-13 23:03:23 -0700191
Eoghan Glynn9cb17762012-07-15 10:22:45 +0100192# 5Gb default volume backing file size
193VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-5130M}
Nachi Uenofda946e2012-10-24 17:26:02 -0700194
195PRIVATE_NETWORK_NAME=${PRIVATE_NETWORK_NAME:-"private"}
196PUBLIC_NETWORK_NAME=${PUBLIC_NETWORK_NAME:-"nova"}