forked from savi-dev/devstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stackrc
154 lines (127 loc) · 6.01 KB
/
stackrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# Find the other rc files
RC_DIR=$(cd $(dirname "$BASH_SOURCE") && pwd)
# Destination path for installation
DEST=/opt/stack
# 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+=,swift
#
# If you like to explicitly remove services you can add a -$service in
# ENABLED_SERVICES, for example in your localrc to install all defaults but not
# cinder you would just need to set this :
# ENABLED_SERVICES+=,-cinder
ENABLED_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
# Set the default Nova APIs to enable
NOVA_ENABLED_APIS=ec2,osapi_compute,osapi_volume,metadata
# Base GIT Repo URL
# Another option is http://review.openstack.org/p
GIT_BASE=https://github.com
# volume service
CINDER_REPO=${GIT_BASE}/savi-dev/cinder
CINDER_BRANCH=master
# volume client
CINDERCLIENT_REPO=${GIT_BASE}/savi-dev/python-cinderclient
CINDERCLIENT_BRANCH=master
# compute service
NOVA_REPO=${GIT_BASE}/savi-dev/nova.git
NOVA_BRANCH=master
# storage service
SWIFT_REPO=${GIT_BASE}/savi-dev/swift.git
SWIFT_BRANCH=master
SWIFT3_REPO=https://github.com/savi-dev/swift3.git
SWIFT3_BRANCH=saviws2012
# python swift client library
SWIFTCLIENT_REPO=${GIT_BASE}/savi-dev/python-swiftclient
SWIFTCLIENT_BRANCH=master
# image catalog service
GLANCE_REPO=${GIT_BASE}/savi-dev/glance.git
GLANCE_BRANCH=master
# python glance client library
GLANCECLIENT_REPO=${GIT_BASE}/savi-dev/python-glanceclient
GLANCECLIENT_BRANCH=master
# unified auth system (manages accounts/tokens)
KEYSTONE_REPO=${GIT_BASE}/savi-dev/keystone.git
KEYSTONE_BRANCH=master
# a websockets/html5 or flash powered VNC console for vm instances
NOVNC_REPO=https://github.com/savi-dev/noVNC.git
NOVNC_BRANCH=saviws2012
# django powered web control panel for openstack
HORIZON_REPO=${GIT_BASE}/savi-dev/horizon.git
HORIZON_BRANCH=master
# python client library to nova that horizon (and others) use
NOVACLIENT_REPO=${GIT_BASE}/savi-dev/python-novaclient.git
NOVACLIENT_BRANCH=master
# Shared openstack python client library
OPENSTACKCLIENT_REPO=${GIT_BASE}/savi-dev/python-openstackclient.git
OPENSTACKCLIENT_BRANCH=master
# python keystone client library to nova that horizon uses
KEYSTONECLIENT_REPO=${GIT_BASE}/savi-dev/python-keystoneclient
KEYSTONECLIENT_BRANCH=master
# quantum service
QUANTUM_REPO=${GIT_BASE}/savi-dev/quantum
QUANTUM_BRANCH=master
# quantum client
QUANTUM_CLIENT_REPO=${GIT_BASE}/savi-dev/python-quantumclient
QUANTUM_CLIENT_BRANCH=master
# Tempest test suite
TEMPEST_REPO=${GIT_BASE}/savi-dev/tempest.git
TEMPEST_BRANCH=master
# melange service
MELANGE_REPO=${GIT_BASE}/savi-dev/melange.git
MELANGE_BRANCH=master
# python melange client library
MELANGECLIENT_REPO=${GIT_BASE}/savi-dev/python-melangeclient.git
MELANGECLIENT_BRANCH=master
# ryu service
RYU_REPO=https://github.com/savi-dev/ryu.git
RYU_BRANCH=master
# Nova hypervisor configuration. We default to libvirt with **kvm** but will
# drop back to **qemu** if we are unable to load the kvm module. ``stack.sh`` can
# also install an **LXC** or **OpenVZ** based system.
VIRT_DRIVER=${VIRT_DRIVER:-libvirt}
LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm}
# allow local overrides of env variables
if [ -f $RC_DIR/localrc ]; then
source $RC_DIR/localrc
fi
# Specify a comma-separated list of uec images to download and install into glance.
# 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.
# example:
# 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
#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
#
# Set default image based on LIBVIRT_TYPE or VIRT_DRIVER, which may be set in localrc
# but allow DEFAULT_IMAGE_NAME and IMAGE_URLS to be set directly in localrc, too.
case "$VIRT_DRIVER" in
openvz) # OpenVZ uses its own format of image, and does not support uec style images
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-ubuntu-11.10-x86_64}
IMAGE_URLS=${IMAGE_URLS:-"http://download.openvz.org/template/precreated/ubuntu-11.10-x86_64.tar.gz"};;
libvirt)
case "$LIBVIRT_TYPE" in
lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-rootfs}
IMAGE_URLS=${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)
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-uec}
IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz"};;
esac
;;
*) # otherwise, use the uec style image (with kernel, ramdisk, disk)
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-uec}
IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz"};;
esac
# 5Gb default volume backing file size
VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-5130M}