| Dean Troyer | 54b9732 | 2014-06-20 17:53:55 -0500 | [diff] [blame] | 1 | <!DOCTYPE html> | 
|  | 2 | <html lang="en"> | 
|  | 3 | <head> | 
|  | 4 | <meta charset="utf-8"> | 
|  | 5 | <title>DevStack - stackrc</title> | 
|  | 6 | <meta name="description" content=""> | 
|  | 7 | <meta name="author" content=""> | 
|  | 8 |  | 
|  | 9 | <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> | 
|  | 10 | <!--[if lt IE 9]> | 
|  | 11 | <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | 
|  | 12 | <![endif]--> | 
|  | 13 |  | 
|  | 14 | <!-- Le styles --> | 
|  | 15 | <link href="assets/css/bootstrap.css" rel="stylesheet"> | 
|  | 16 | <link href="assets/css/local.css" rel="stylesheet"> | 
|  | 17 | <style type="text/css"> | 
|  | 18 | body { padding-top: 60px; } | 
|  | 19 | dd { padding: 10px; } | 
|  | 20 | </style> | 
|  | 21 |  | 
|  | 22 | <!-- Le javascripts --> | 
|  | 23 | <script src="../assets/js/jquery-1.7.1.min.js" type="text/javascript" charset="utf-8"></script> | 
|  | 24 | <script src="../assets/js/bootstrap.js" type="text/javascript" charset="utf-8"></script> | 
|  | 25 | </head> | 
|  | 26 |  | 
|  | 27 | <body> | 
|  | 28 |  | 
|  | 29 | <div class="navbar navbar-fixed-top"> | 
|  | 30 | <div class="navbar-inner"> | 
|  | 31 | <div class="container"> | 
|  | 32 | <a class="brand" href="/">DevStack</a> | 
|  | 33 | <ul class="nav pull-right"> | 
|  | 34 | <li><a href="overview.html">Overview</a></li> | 
|  | 35 | <li><a href="changes.html">Changes</a></li> | 
|  | 36 | <li><a href="faq.html">FAQ</a></li> | 
|  | 37 | <li><a href="http://github.com/openstack-dev/devstack">GitHub</a></li> | 
|  | 38 | <li><a href="https://review.openstack.org/#/q/status:open+project:openstack-dev/devstack,n,z">Gerrit</a></li> | 
|  | 39 | </ul> | 
|  | 40 | </div> | 
|  | 41 | </div> | 
|  | 42 | </div> | 
|  | 43 |  | 
|  | 44 | <div class="container"> | 
|  | 45 |  | 
|  | 46 | <section class="span12"> | 
|  | 47 | <div class="page-header"> | 
|  | 48 | <h2>stackrc <small>DevStack settings</small></h2> | 
|  | 49 | <p><code>stackrc</code> is the primary configuration file for DevStack. | 
|  | 50 | It contains all of the settings that control the services started | 
|  | 51 | and the repositories used to download the source for those services. | 
|  | 52 | <code>stackrc</code> sources the <code>localrc</code> section of | 
|  | 53 | <code>local.conf</code> to perform the default overrides.</p> | 
|  | 54 | </div> | 
|  | 55 | <dl> | 
|  | 56 |  | 
|  | 57 | <dt>DATABASE_TYPE</dt> | 
|  | 58 | <dd>Select the database backend to use.  The default is <code>mysql</code>, | 
|  | 59 | <code>postgresql</code> is also available.</dd> | 
|  | 60 |  | 
|  | 61 | <dt>ENABLED_SERVICES</dt> | 
|  | 62 | <dd>Specify which services to launch.  These generally correspond to | 
|  | 63 | screen tabs. | 
|  | 64 | The default includes: Glance (API and Registry), Keystone, Nova (API, | 
|  | 65 | Certificate, Object Store, Compute, Network, Scheduler, VNC proxies, | 
|  | 66 | Certificate Authentication), Cinder (Scheduler, API, Volume), Horizon, MySQL, RabbitMQ, Tempest. | 
|  | 67 | <pre>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,$DATABASE_TYPE</pre> | 
|  | 68 | Other services that are not enabled by default can be enabled in | 
|  | 69 | <code>localrc</code>. For example, to add Swift: | 
|  | 70 | <pre>enable_service swift</pre> | 
|  | 71 | A service can similarly be disabled: | 
|  | 72 | <pre>disable_service horizon</pre></dd> | 
|  | 73 |  | 
|  | 74 | <dt>Service Repos</dt> | 
|  | 75 | <dd>The Git repositories used to check out the source for each service | 
|  | 76 | are controlled by a pair of variables set for each service. | 
|  | 77 | <code>*_REPO</code> points to the repository and <code>*_BRANCH</code> | 
|  | 78 | selects which branch to check out.  These may be overridden in | 
|  | 79 | <code>local.conf</code> to pull source from a different repo for testing, | 
|  | 80 | such as a Gerrit branch proposal.  <code>GIT_BASE</code> points to the primary repository server. | 
|  | 81 | <pre>NOVA_REPO=$GIT_BASE/openstack/nova.git | 
|  | 82 | NOVA_BRANCH=master</pre> | 
|  | 83 | To pull a branch directly from Gerrit, get the repo and branch from the | 
|  | 84 | Gerrit review page: | 
|  | 85 | <pre>git fetch https://review.openstack.org/p/openstack/nova refs/changes/50/5050/1 && git checkout FETCH_HEAD</pre> | 
|  | 86 | The repo is the stanza following <code>fetch</code> and the branch | 
|  | 87 | is the stanza following that: | 
|  | 88 | <pre>NOVA_REPO=https://review.openstack.org/p/openstack/nova | 
|  | 89 | NOVA_BRANCH=refs/changes/50/5050/1</pre></dd> | 
|  | 90 |  | 
|  | 91 | </dl> | 
|  | 92 | </section | 
|  | 93 |  | 
|  | 94 | <footer> | 
|  | 95 | <p>© Openstack Foundation 2011-2014 — An <a href="https://www.openstack.org/">OpenStack</a> <a href="https://wiki.openstack.org/wiki/Programs">program</a></p> | 
|  | 96 | </footer> | 
|  | 97 |  | 
|  | 98 | </div> <!-- /container --> | 
|  | 99 |  | 
|  | 100 | </body> | 
|  | 101 | </html> |