Dean Troyer | 0bd2410 | 2012-03-08 00:33:54 -0600 | [diff] [blame] | 1 | # Find the other rc files |
| 2 | RC_DIR=$(cd $(dirname "$BASH_SOURCE") && pwd) |
| 3 | |
Dean Troyer | 1214d9d | 2012-07-06 09:39:07 -0500 | [diff] [blame] | 4 | # Destination path for installation |
| 5 | DEST=/opt/stack |
| 6 | |
Chmouel Boudjnah | 8da5656 | 2012-03-09 14:21:40 +0000 | [diff] [blame] | 7 | # 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 Boudjnah | c4cd414 | 2012-06-27 11:01:40 +0200 | [diff] [blame] | 12 | # 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 Griffith | d586e1c | 2012-07-11 13:21:08 -0600 | [diff] [blame] | 16 | # cinder you would just need to set this : |
| 17 | # ENABLED_SERVICES+=,-cinder |
| 18 | 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 |
Chmouel Boudjnah | 8da5656 | 2012-03-09 14:21:40 +0000 | [diff] [blame] | 19 | |
Dean Troyer | 67787e6 | 2012-05-02 11:48:15 -0500 | [diff] [blame] | 20 | # Set the default Nova APIs to enable |
| 21 | NOVA_ENABLED_APIS=ec2,osapi_compute,osapi_volume,metadata |
| 22 | |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 23 | # Base GIT Repo URL |
| 24 | # Another option is http://review.openstack.org/p |
| 25 | GIT_BASE=https://github.com |
| 26 | |
John H. Tran | 9336164 | 2012-07-26 11:22:05 -0700 | [diff] [blame^] | 27 | # metering service |
| 28 | CEILOMETER_REPO=https://github.com/stackforge/ceilometer.git |
| 29 | CEILOMETER_BRANCH=master |
| 30 | |
Dean Troyer | 67787e6 | 2012-05-02 11:48:15 -0500 | [diff] [blame] | 31 | # volume service |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 32 | CINDER_REPO=${GIT_BASE}/openstack/cinder |
Dean Troyer | 67787e6 | 2012-05-02 11:48:15 -0500 | [diff] [blame] | 33 | CINDER_BRANCH=master |
| 34 | |
| 35 | # volume client |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 36 | CINDERCLIENT_REPO=${GIT_BASE}/openstack/python-cinderclient |
Dean Troyer | 67787e6 | 2012-05-02 11:48:15 -0500 | [diff] [blame] | 37 | CINDERCLIENT_BRANCH=master |
| 38 | |
Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 39 | # compute service |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 40 | NOVA_REPO=${GIT_BASE}/openstack/nova.git |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 41 | NOVA_BRANCH=master |
Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 42 | |
Chmouel Boudjnah | 28fa4e8 | 2011-11-01 12:30:55 +0100 | [diff] [blame] | 43 | # storage service |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 44 | SWIFT_REPO=${GIT_BASE}/openstack/swift.git |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 45 | SWIFT_BRANCH=master |
Joe Gordon | 42b1aa9 | 2012-05-24 14:11:01 -0700 | [diff] [blame] | 46 | SWIFT3_REPO=https://github.com/fujita/swift3.git |
| 47 | SWIFT3_BRANCH=master |
| 48 | |
Chmouel Boudjnah | 28fa4e8 | 2011-11-01 12:30:55 +0100 | [diff] [blame] | 49 | |
Chmouel Boudjnah | fda9df8 | 2012-05-22 10:27:08 +0000 | [diff] [blame] | 50 | # python swift client library |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 51 | SWIFTCLIENT_REPO=${GIT_BASE}/openstack/python-swiftclient |
Chmouel Boudjnah | fda9df8 | 2012-05-22 10:27:08 +0000 | [diff] [blame] | 52 | SWIFTCLIENT_BRANCH=master |
| 53 | |
Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 54 | # image catalog service |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 55 | GLANCE_REPO=${GIT_BASE}/openstack/glance.git |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 56 | GLANCE_BRANCH=master |
Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 57 | |
Dean Troyer | 4549525 | 2012-04-13 13:16:38 -0500 | [diff] [blame] | 58 | # python glance client library |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 59 | GLANCECLIENT_REPO=${GIT_BASE}/openstack/python-glanceclient |
Dean Troyer | 4549525 | 2012-04-13 13:16:38 -0500 | [diff] [blame] | 60 | GLANCECLIENT_BRANCH=master |
| 61 | |
Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 62 | # unified auth system (manages accounts/tokens) |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 63 | KEYSTONE_REPO=${GIT_BASE}/openstack/keystone.git |
Dean Troyer | 6a3f607 | 2012-02-16 16:31:24 -0600 | [diff] [blame] | 64 | KEYSTONE_BRANCH=master |
Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 65 | |
| 66 | # a websockets/html5 or flash powered VNC console for vm instances |
Anthony Young | 220d938 | 2012-05-04 10:19:44 -0700 | [diff] [blame] | 67 | NOVNC_REPO=https://github.com/kanaka/noVNC.git |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 68 | NOVNC_BRANCH=master |
Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 69 | |
| 70 | # django powered web control panel for openstack |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 71 | HORIZON_REPO=${GIT_BASE}/openstack/horizon.git |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 72 | HORIZON_BRANCH=master |
Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 73 | |
Tres Henry | ca85b79 | 2011-10-28 14:00:21 -0700 | [diff] [blame] | 74 | # python client library to nova that horizon (and others) use |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 75 | NOVACLIENT_REPO=${GIT_BASE}/openstack/python-novaclient.git |
Anthony Young | 248221a | 2011-09-27 11:25:18 -0700 | [diff] [blame] | 76 | NOVACLIENT_BRANCH=master |
Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 77 | |
Andrew Bogott | 77a4e3a | 2012-05-01 00:07:29 -0500 | [diff] [blame] | 78 | # Shared openstack python client library |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 79 | OPENSTACKCLIENT_REPO=${GIT_BASE}/openstack/python-openstackclient.git |
Andrew Bogott | 77a4e3a | 2012-05-01 00:07:29 -0500 | [diff] [blame] | 80 | OPENSTACKCLIENT_BRANCH=master |
| 81 | |
Anthony Young | 52e631d | 2011-12-27 22:22:14 -0800 | [diff] [blame] | 82 | # python keystone client library to nova that horizon uses |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 83 | KEYSTONECLIENT_REPO=${GIT_BASE}/openstack/python-keystoneclient |
Anthony Young | 52e631d | 2011-12-27 22:22:14 -0800 | [diff] [blame] | 84 | KEYSTONECLIENT_BRANCH=master |
| 85 | |
Brad Hall | 1bfa3d5 | 2011-10-27 18:18:20 -0700 | [diff] [blame] | 86 | # quantum service |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 87 | QUANTUM_REPO=${GIT_BASE}/openstack/quantum |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 88 | QUANTUM_BRANCH=master |
Brad Hall | 1bfa3d5 | 2011-10-27 18:18:20 -0700 | [diff] [blame] | 89 | |
Dave Lapsley | 5a09c92 | 2012-01-25 17:22:15 -0500 | [diff] [blame] | 90 | # quantum client |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 91 | QUANTUM_CLIENT_REPO=${GIT_BASE}/openstack/python-quantumclient |
Dave Lapsley | 5a09c92 | 2012-01-25 17:22:15 -0500 | [diff] [blame] | 92 | QUANTUM_CLIENT_BRANCH=master |
| 93 | |
Dean Troyer | 608bb12 | 2012-01-10 14:43:17 -0600 | [diff] [blame] | 94 | # Tempest test suite |
Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 95 | TEMPEST_REPO=${GIT_BASE}/openstack/tempest.git |
Dean Troyer | 608bb12 | 2012-01-10 14:43:17 -0600 | [diff] [blame] | 96 | TEMPEST_BRANCH=master |
Dean Troyer | b0e57cf | 2011-11-04 12:13:43 -0500 | [diff] [blame] | 97 | |
Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 98 | # Nova hypervisor configuration. We default to libvirt with **kvm** but will |
| 99 | # drop back to **qemu** if we are unable to load the kvm module. ``stack.sh`` can |
| 100 | # also install an **LXC** or **OpenVZ** based system. |
| 101 | VIRT_DRIVER=${VIRT_DRIVER:-libvirt} |
| 102 | LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm} |
| 103 | |
| 104 | # allow local overrides of env variables |
| 105 | if [ -f $RC_DIR/localrc ]; then |
| 106 | source $RC_DIR/localrc |
| 107 | fi |
| 108 | |
Anthony Young | 120f486 | 2011-10-14 09:31:09 -0700 | [diff] [blame] | 109 | # Specify a comma-separated list of uec images to download and install into glance. |
Scott Moser | 4f6d7b6 | 2011-12-08 16:22:51 -0500 | [diff] [blame] | 110 | # supported urls here are: |
| 111 | # * "uec-style" images: |
| 112 | # If the file ends in .tar.gz, uncompress the tarball and and select the first |
| 113 | # .img file inside it as the image. If present, use "*-vmlinuz*" as the kernel |
| 114 | # and "*-initrd*" as the ramdisk |
| 115 | # example: http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-amd64.tar.gz |
| 116 | # * disk image (*.img,*.img.gz) |
| 117 | # if file ends in .img, then it will be uploaded and registered as a to |
| 118 | # glance as a disk image. If it ends in .gz, it is uncompressed first. |
Jason Kölker | 64a9066 | 2012-01-23 11:17:27 -0600 | [diff] [blame] | 119 | # example: |
Scott Moser | 4f6d7b6 | 2011-12-08 16:22:51 -0500 | [diff] [blame] | 120 | # http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-armel-disk1.img |
| 121 | # http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-rootfs.img.gz |
Scott Moser | 3584e55 | 2011-12-08 16:23:27 -0500 | [diff] [blame] | 122 | #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 |
| 123 | #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 Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 124 | # |
| 125 | # Set default image based on LIBVIRT_TYPE or VIRT_DRIVER, which may be set in localrc |
| 126 | # but allow DEFAULT_IMAGE_NAME and IMAGE_URLS to be set directly in localrc, too. |
| 127 | case "$VIRT_DRIVER" in |
| 128 | openvz) # OpenVZ uses its own format of image, and does not support uec style images |
| 129 | DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-ubuntu-11.10-x86_64} |
| 130 | IMAGE_URLS=${IMAGE_URLS:-"http://download.openvz.org/template/precreated/ubuntu-11.10-x86_64.tar.gz"};; |
| 131 | libvirt) |
| 132 | case "$LIBVIRT_TYPE" in |
| 133 | lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc |
| 134 | DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-rootfs} |
| 135 | IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-rootfs.img.gz"};; |
| 136 | *) # otherwise, use the uec style image (with kernel, ramdisk, disk) |
| 137 | DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-uec} |
| 138 | IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz"};; |
| 139 | esac |
| 140 | ;; |
| 141 | *) # otherwise, use the uec style image (with kernel, ramdisk, disk) |
| 142 | DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.0-x86_64-uec} |
| 143 | IMAGE_URLS=${IMAGE_URLS:-"http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz"};; |
Scott Moser | a368218 | 2011-12-16 10:29:10 -0500 | [diff] [blame] | 144 | esac |
Anthony Young | 0ab1d46 | 2011-10-13 23:03:23 -0700 | [diff] [blame] | 145 | |
Eoghan Glynn | 9cb1776 | 2012-07-15 10:22:45 +0100 | [diff] [blame] | 146 | # 5Gb default volume backing file size |
| 147 | VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-5130M} |