| Dean Troyer | 4a43b7b | 2012-08-28 17:43:40 -0500 | [diff] [blame] | 1 | # stackrc | 
 | 2 | # | 
| Dean Troyer | 0bd2410 | 2012-03-08 00:33:54 -0600 | [diff] [blame] | 3 | # Find the other rc files | 
 | 4 | RC_DIR=$(cd $(dirname "$BASH_SOURCE") && pwd) | 
 | 5 |  | 
| Dean Troyer | 1214d9d | 2012-07-06 09:39:07 -0500 | [diff] [blame] | 6 | # Destination path for installation | 
 | 7 | DEST=/opt/stack | 
 | 8 |  | 
| Dean Troyer | c83a7e1 | 2012-11-29 11:47:58 -0600 | [diff] [blame] | 9 | # Destination for working data | 
 | 10 | DATA_DIR=${DEST}/data | 
 | 11 |  | 
| Dean Troyer | 74759aa | 2013-01-24 14:19:55 -0600 | [diff] [blame] | 12 | # Determine stack user | 
 | 13 | if [[ $EUID -eq 0 ]]; then | 
 | 14 |     STACK_USER=stack | 
 | 15 | else | 
 | 16 |     STACK_USER=$(whoami) | 
 | 17 | fi | 
| Attila Fazekas | 91b8d13 | 2013-01-06 22:40:09 +0100 | [diff] [blame] | 18 |  | 
| Chmouel Boudjnah | 8da5656 | 2012-03-09 14:21:40 +0000 | [diff] [blame] | 19 | # Specify which services to launch.  These generally correspond to | 
| Dean Troyer | 4a43b7b | 2012-08-28 17:43:40 -0500 | [diff] [blame] | 20 | # screen tabs. To change the default list, use the ``enable_service`` and | 
 | 21 | # ``disable_service`` functions in ``localrc``. | 
 | 22 | # For example, to enable Swift add this to ``localrc``: | 
 | 23 | # enable_service swift | 
| Sean Dague | f3fd44c | 2013-03-04 17:33:35 -0500 | [diff] [blame] | 24 | ENABLED_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,mysql | 
| Chmouel Boudjnah | 8da5656 | 2012-03-09 14:21:40 +0000 | [diff] [blame] | 25 |  | 
| Dean Troyer | 67787e6 | 2012-05-02 11:48:15 -0500 | [diff] [blame] | 26 | # Set the default Nova APIs to enable | 
| Andrew Laski | 6e7e1c9 | 2012-10-31 16:11:37 -0400 | [diff] [blame] | 27 | NOVA_ENABLED_APIS=ec2,osapi_compute,metadata | 
| Dean Troyer | 67787e6 | 2012-05-02 11:48:15 -0500 | [diff] [blame] | 28 |  | 
| Vishvananda Ishaya | 58e2134 | 2013-02-11 16:48:12 -0800 | [diff] [blame] | 29 | # Whether to use 'dev mode' for screen windows. Dev mode works by | 
 | 30 | # stuffing text into the screen windows so that a developer can use | 
 | 31 | # ctrl-c, up-arrow, enter to restart the service. Starting services | 
 | 32 | # this way is slightly unreliable, and a bit slower, so this can | 
 | 33 | # be disabled for automated testing by setting this value to false. | 
 | 34 | SCREEN_DEV=True | 
 | 35 |  | 
| Dean Troyer | 4a43b7b | 2012-08-28 17:43:40 -0500 | [diff] [blame] | 36 | # Repositories | 
 | 37 | # ------------ | 
 | 38 |  | 
| Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 39 | # Base GIT Repo URL | 
 | 40 | # Another option is http://review.openstack.org/p | 
 | 41 | GIT_BASE=https://github.com | 
 | 42 |  | 
| John H. Tran | 9336164 | 2012-07-26 11:22:05 -0700 | [diff] [blame] | 43 | # metering service | 
| Lianhao Lu | af5cd77 | 2012-11-12 16:36:42 +0800 | [diff] [blame] | 44 | CEILOMETER_REPO=${GIT_BASE}/openstack/ceilometer.git | 
| John H. Tran | 9336164 | 2012-07-26 11:22:05 -0700 | [diff] [blame] | 45 | CEILOMETER_BRANCH=master | 
 | 46 |  | 
| Yunhong, Jiang | e583d9b | 2013-01-09 09:33:07 +0800 | [diff] [blame] | 47 | # ceilometer client library | 
 | 48 | CEILOMETERCLIENT_REPO=${GIT_BASE}/openstack/python-ceilometerclient | 
 | 49 | CEILOMETERCLIENT_BRANCH=master | 
 | 50 |  | 
| Dean Troyer | 67787e6 | 2012-05-02 11:48:15 -0500 | [diff] [blame] | 51 | # volume service | 
| Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 52 | CINDER_REPO=${GIT_BASE}/openstack/cinder | 
| Dean Troyer | 67787e6 | 2012-05-02 11:48:15 -0500 | [diff] [blame] | 53 | CINDER_BRANCH=master | 
 | 54 |  | 
 | 55 | # volume client | 
| Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 56 | CINDERCLIENT_REPO=${GIT_BASE}/openstack/python-cinderclient | 
| Dean Troyer | 67787e6 | 2012-05-02 11:48:15 -0500 | [diff] [blame] | 57 | CINDERCLIENT_BRANCH=master | 
 | 58 |  | 
| Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 59 | # compute service | 
| Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 60 | NOVA_REPO=${GIT_BASE}/openstack/nova.git | 
| Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 61 | NOVA_BRANCH=master | 
| Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 62 |  | 
| Chmouel Boudjnah | 28fa4e8 | 2011-11-01 12:30:55 +0100 | [diff] [blame] | 63 | # storage service | 
| Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 64 | SWIFT_REPO=${GIT_BASE}/openstack/swift.git | 
| Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 65 | SWIFT_BRANCH=master | 
| Joe Gordon | 42b1aa9 | 2012-05-24 14:11:01 -0700 | [diff] [blame] | 66 | SWIFT3_REPO=https://github.com/fujita/swift3.git | 
 | 67 | SWIFT3_BRANCH=master | 
 | 68 |  | 
| Chmouel Boudjnah | fda9df8 | 2012-05-22 10:27:08 +0000 | [diff] [blame] | 69 | # python swift client library | 
| Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 70 | SWIFTCLIENT_REPO=${GIT_BASE}/openstack/python-swiftclient | 
| Chmouel Boudjnah | fda9df8 | 2012-05-22 10:27:08 +0000 | [diff] [blame] | 71 | SWIFTCLIENT_BRANCH=master | 
 | 72 |  | 
| Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 73 | # image catalog service | 
| Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 74 | GLANCE_REPO=${GIT_BASE}/openstack/glance.git | 
| Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 75 | GLANCE_BRANCH=master | 
| Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 76 |  | 
| Dean Troyer | 4549525 | 2012-04-13 13:16:38 -0500 | [diff] [blame] | 77 | # python glance client library | 
| Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 78 | GLANCECLIENT_REPO=${GIT_BASE}/openstack/python-glanceclient | 
| Dean Troyer | 4549525 | 2012-04-13 13:16:38 -0500 | [diff] [blame] | 79 | GLANCECLIENT_BRANCH=master | 
 | 80 |  | 
| Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 81 | # unified auth system (manages accounts/tokens) | 
| Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 82 | KEYSTONE_REPO=${GIT_BASE}/openstack/keystone.git | 
| Dean Troyer | 6a3f607 | 2012-02-16 16:31:24 -0600 | [diff] [blame] | 83 | KEYSTONE_BRANCH=master | 
| Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 84 |  | 
 | 85 | # a websockets/html5 or flash powered VNC console for vm instances | 
| Anthony Young | 220d938 | 2012-05-04 10:19:44 -0700 | [diff] [blame] | 86 | NOVNC_REPO=https://github.com/kanaka/noVNC.git | 
| Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 87 | NOVNC_BRANCH=master | 
| Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 88 |  | 
| Daniel P. Berrange | d10e12f | 2013-01-03 11:51:42 +0000 | [diff] [blame] | 89 | # a websockets/html5 or flash powered SPICE console for vm instances | 
 | 90 | SPICE_REPO=http://anongit.freedesktop.org/git/spice/spice-html5.git | 
 | 91 | SPICE_BRANCH=master | 
 | 92 |  | 
| Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 93 | # django powered web control panel for openstack | 
| Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 94 | HORIZON_REPO=${GIT_BASE}/openstack/horizon.git | 
| Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 95 | HORIZON_BRANCH=master | 
| Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 96 |  | 
| Tres Henry | ca85b79 | 2011-10-28 14:00:21 -0700 | [diff] [blame] | 97 | # python client library to nova that horizon (and others) use | 
| Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 98 | NOVACLIENT_REPO=${GIT_BASE}/openstack/python-novaclient.git | 
| Anthony Young | 248221a | 2011-09-27 11:25:18 -0700 | [diff] [blame] | 99 | NOVACLIENT_BRANCH=master | 
| Anthony Young | 096fb5a | 2011-09-26 13:14:46 -0700 | [diff] [blame] | 100 |  | 
| Dean Troyer | 9f61d29 | 2012-11-26 18:56:20 +0000 | [diff] [blame] | 101 | # consolidated openstack python client | 
 | 102 | OPENSTACKCLIENT_REPO=${GIT_BASE}/openstack/python-openstackclient.git | 
 | 103 | OPENSTACKCLIENT_BRANCH=master | 
 | 104 |  | 
| Anthony Young | 52e631d | 2011-12-27 22:22:14 -0800 | [diff] [blame] | 105 | # python keystone client library to nova that horizon uses | 
| Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 106 | KEYSTONECLIENT_REPO=${GIT_BASE}/openstack/python-keystoneclient | 
| Anthony Young | 52e631d | 2011-12-27 22:22:14 -0800 | [diff] [blame] | 107 | KEYSTONECLIENT_BRANCH=master | 
 | 108 |  | 
| Brad Hall | 1bfa3d5 | 2011-10-27 18:18:20 -0700 | [diff] [blame] | 109 | # quantum service | 
| Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 110 | QUANTUM_REPO=${GIT_BASE}/openstack/quantum | 
| Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 111 | QUANTUM_BRANCH=master | 
| Brad Hall | 1bfa3d5 | 2011-10-27 18:18:20 -0700 | [diff] [blame] | 112 |  | 
| Dave Lapsley | 5a09c92 | 2012-01-25 17:22:15 -0500 | [diff] [blame] | 113 | # quantum client | 
| Dean Troyer | 60e9c0a | 2012-12-06 15:52:52 -0600 | [diff] [blame] | 114 | QUANTUMCLIENT_REPO=${GIT_BASE}/openstack/python-quantumclient | 
 | 115 | QUANTUMCLIENT_BRANCH=master | 
| Dave Lapsley | 5a09c92 | 2012-01-25 17:22:15 -0500 | [diff] [blame] | 116 |  | 
| Dean Troyer | 608bb12 | 2012-01-10 14:43:17 -0600 | [diff] [blame] | 117 | # Tempest test suite | 
| Monty Taylor | d5b18ec | 2012-07-26 09:21:01 -0500 | [diff] [blame] | 118 | TEMPEST_REPO=${GIT_BASE}/openstack/tempest.git | 
| Dean Troyer | 608bb12 | 2012-01-10 14:43:17 -0600 | [diff] [blame] | 119 | TEMPEST_BRANCH=master | 
| Dean Troyer | b0e57cf | 2011-11-04 12:13:43 -0500 | [diff] [blame] | 120 |  | 
| Steve Baker | bfdad75 | 2012-08-18 09:00:42 +1200 | [diff] [blame] | 121 | # heat service | 
| Steven Hardy | 9a27dd8 | 2012-12-03 12:41:02 +0000 | [diff] [blame] | 122 | HEAT_REPO=${GIT_BASE}/openstack/heat.git | 
| Steve Baker | bfdad75 | 2012-08-18 09:00:42 +1200 | [diff] [blame] | 123 | HEAT_BRANCH=master | 
 | 124 |  | 
| Steve Baker | 32761a4 | 2012-11-05 09:57:57 +1300 | [diff] [blame] | 125 | # python heat client library | 
| Clint Byrum | df1cf94 | 2013-01-10 11:12:45 -0800 | [diff] [blame] | 126 | HEATCLIENT_REPO=${GIT_BASE}/openstack/python-heatclient.git | 
| Steve Baker | 32761a4 | 2012-11-05 09:57:57 +1300 | [diff] [blame] | 127 | HEATCLIENT_BRANCH=master | 
 | 128 |  | 
| Yoshihiro Kaneko | 602cf9b | 2012-07-23 06:27:36 +0000 | [diff] [blame] | 129 | # ryu service | 
 | 130 | RYU_REPO=https://github.com/osrg/ryu.git | 
 | 131 | RYU_BRANCH=master | 
 | 132 |  | 
| Devananda van der Veen | f35cf91 | 2012-11-12 17:58:38 -0800 | [diff] [blame] | 133 | # diskimage-builder | 
 | 134 | BM_IMAGE_BUILD_REPO=https://github.com/stackforge/diskimage-builder.git | 
 | 135 | BM_IMAGE_BUILD_BRANCH=master | 
 | 136 |  | 
| Devananda van der Veen | 7611c89 | 2012-11-23 10:54:54 -0800 | [diff] [blame] | 137 | # bm_poseur | 
 | 138 | # Used to simulate a hardware environment for baremetal | 
 | 139 | # Only used if BM_USE_FAKE_ENV is set | 
 | 140 | BM_POSEUR_REPO=https://github.com/tripleo/bm_poseur.git | 
 | 141 | BM_POSEUR_BRANCH=master | 
 | 142 |  | 
 | 143 |  | 
| Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 144 | # Nova hypervisor configuration.  We default to libvirt with **kvm** but will | 
 | 145 | # drop back to **qemu** if we are unable to load the kvm module.  ``stack.sh`` can | 
 | 146 | # also install an **LXC** or **OpenVZ** based system. | 
 | 147 | VIRT_DRIVER=${VIRT_DRIVER:-libvirt} | 
 | 148 | LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm} | 
 | 149 |  | 
 | 150 | # allow local overrides of env variables | 
 | 151 | if [ -f $RC_DIR/localrc ]; then | 
 | 152 |     source $RC_DIR/localrc | 
 | 153 | fi | 
 | 154 |  | 
| Dean Troyer | 4a43b7b | 2012-08-28 17:43:40 -0500 | [diff] [blame] | 155 | # 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] | 156 | # supported urls here are: | 
 | 157 | #  * "uec-style" images: | 
 | 158 | #     If the file ends in .tar.gz, uncompress the tarball and and select the first | 
 | 159 | #     .img file inside it as the image.  If present, use "*-vmlinuz*" as the kernel | 
 | 160 | #     and "*-initrd*" as the ramdisk | 
 | 161 | #     example: http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-amd64.tar.gz | 
 | 162 | #  * disk image (*.img,*.img.gz) | 
 | 163 | #    if file ends in .img, then it will be uploaded and registered as a to | 
 | 164 | #    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] | 165 | #    example: | 
| Scott Moser | 4f6d7b6 | 2011-12-08 16:22:51 -0500 | [diff] [blame] | 166 | #      http://cloud-images.ubuntu.com/releases/oneiric/release/ubuntu-11.10-server-cloudimg-armel-disk1.img | 
| Scott Moser | cde655a | 2013-02-20 12:33:39 -0500 | [diff] [blame] | 167 | #      http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-rootfs.img.gz | 
| Dean Troyer | 4a43b7b | 2012-08-28 17:43:40 -0500 | [diff] [blame] | 168 | #  * OpenVZ image: | 
 | 169 | #    OpenVZ uses its own format of image, and does not support UEC style images | 
 | 170 |  | 
| Scott Moser | 3584e55 | 2011-12-08 16:23:27 -0500 | [diff] [blame] | 171 | #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 | 
| Scott Moser | cde655a | 2013-02-20 12:33:39 -0500 | [diff] [blame] | 172 | #IMAGE_URLS="http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img" # cirros full disk image | 
| Dean Troyer | 4a43b7b | 2012-08-28 17:43:40 -0500 | [diff] [blame] | 173 |  | 
 | 174 | # Set default image based on ``VIRT_DRIVER`` and ``LIBVIRT_TYPE``, either of | 
| Nachi Ueno | fda946e | 2012-10-24 17:26:02 -0700 | [diff] [blame] | 175 | # which may be set in ``localrc``.  Also allow ``DEFAULT_IMAGE_NAME`` and | 
| Dean Troyer | 4a43b7b | 2012-08-28 17:43:40 -0500 | [diff] [blame] | 176 | # ``IMAGE_URLS`` to be set directly in ``localrc``. | 
| Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 177 | case "$VIRT_DRIVER" in | 
| Nachi Ueno | fda946e | 2012-10-24 17:26:02 -0700 | [diff] [blame] | 178 |     openvz) | 
| Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 179 |         DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-ubuntu-11.10-x86_64} | 
 | 180 |         IMAGE_URLS=${IMAGE_URLS:-"http://download.openvz.org/template/precreated/ubuntu-11.10-x86_64.tar.gz"};; | 
 | 181 |     libvirt) | 
 | 182 |         case "$LIBVIRT_TYPE" in | 
 | 183 |             lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc | 
| Scott Moser | cde655a | 2013-02-20 12:33:39 -0500 | [diff] [blame] | 184 |                 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-rootfs} | 
 | 185 |                 IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-rootfs.img.gz"};; | 
| Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 186 |             *) # otherwise, use the uec style image (with kernel, ramdisk, disk) | 
| Scott Moser | cde655a | 2013-02-20 12:33:39 -0500 | [diff] [blame] | 187 |                 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-uec} | 
 | 188 |                 IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};; | 
| Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 189 |         esac | 
 | 190 |         ;; | 
 | 191 |     *) # otherwise, use the uec style image (with kernel, ramdisk, disk) | 
| Scott Moser | cde655a | 2013-02-20 12:33:39 -0500 | [diff] [blame] | 192 |         DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-uec} | 
 | 193 |         IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};; | 
| Scott Moser | a368218 | 2011-12-16 10:29:10 -0500 | [diff] [blame] | 194 | esac | 
| Anthony Young | 0ab1d46 | 2011-10-13 23:03:23 -0700 | [diff] [blame] | 195 |  | 
| Eoghan Glynn | 9cb1776 | 2012-07-15 10:22:45 +0100 | [diff] [blame] | 196 | # 5Gb default volume backing file size | 
 | 197 | VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-5130M} | 
| Nachi Ueno | fda946e | 2012-10-24 17:26:02 -0700 | [diff] [blame] | 198 |  | 
 | 199 | PRIVATE_NETWORK_NAME=${PRIVATE_NETWORK_NAME:-"private"} | 
 | 200 | PUBLIC_NETWORK_NAME=${PUBLIC_NETWORK_NAME:-"nova"} |