Fix use of variables
Change-Id: I686ad7180811cef2b1e5baea96062ec51e4fbf98
This commit is contained in:
parent
f445fa8993
commit
e9209c13ce
|
@ -55,7 +55,7 @@ source_suffix = '.rst'
|
||||||
master_doc = 'index'
|
master_doc = 'index'
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = u'Installation Guide for {{service}} Service'
|
project = u'Installation Guide for {{cookiecutter.service}} Service'
|
||||||
bug_tag = u'install-guide'
|
bug_tag = u'install-guide'
|
||||||
copyright = u'2016, OpenStack contributors'
|
copyright = u'2016, OpenStack contributors'
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ release = '0.1'
|
||||||
# gitsha: The SHA checksum of the bug description. Automatically extracted from git log.
|
# gitsha: The SHA checksum of the bug description. Automatically extracted from git log.
|
||||||
# bug_tag: Tag for categorizing the bug. Must be set manually.
|
# bug_tag: Tag for categorizing the bug. Must be set manually.
|
||||||
# These variables are passed to the logabug code via html_context.
|
# These variables are passed to the logabug code via html_context.
|
||||||
giturl = u'http://git.openstack.org/cgit/openstack/{{codename}}/tree/install-guide/source'
|
giturl = u'http://git.openstack.org/cgit/openstack/{{cookiecutter.codename}}/tree/install-guide/source'
|
||||||
git_cmd = "/usr/bin/git log | head -n1 | cut -f2 -d' '"
|
git_cmd = "/usr/bin/git log | head -n1 | cut -f2 -d' '"
|
||||||
gitsha = os.popen(git_cmd).read().strip('\n')
|
gitsha = os.popen(git_cmd).read().strip('\n')
|
||||||
html_context = {"gitsha": gitsha, "bug_tag": bug_tag,
|
html_context = {"gitsha": gitsha, "bug_tag": bug_tag,
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
=========================
|
=========================
|
||||||
{{service}} service overview
|
{{cookiecutter.service}} service overview
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
The {{service}} service provides...
|
The {{cookiecutter.service}} service provides...
|
||||||
|
|
||||||
The {{service}} service consists of the following components:
|
The {{cookiecutter.service}} service consists of the following components:
|
||||||
|
|
||||||
``{{codename}}-api`` service
|
``{{cookiecutter.codename}}-api`` service
|
||||||
Accepts and responds to end user compute API calls...
|
Accepts and responds to end user compute API calls...
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
=====================
|
=====================
|
||||||
{{service}} service
|
{{cookiecutter.service}} service
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
verify.rst
|
verify.rst
|
||||||
next-steps.rst
|
next-steps.rst
|
||||||
|
|
||||||
The {{service}} service ({{codename}}) provides...
|
The {{cookiecutter.service}} service ({{cookiecutter.codename}}) provides...
|
||||||
|
|
||||||
This chapter assumes a working setup of OpenStack following the base
|
This chapter assumes a working setup of OpenStack following the base
|
||||||
Installation Guide.
|
Installation Guide.
|
||||||
|
|
|
@ -4,7 +4,7 @@ Install and configure
|
||||||
~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
This section describes how to install and configure the
|
This section describes how to install and configure the
|
||||||
{{service}} service, code-named {{codename}}, on the controller node.
|
{{cookiecutter.service}} service, code-named {{cookiecutter.codename}}, on the controller node.
|
||||||
|
|
||||||
This section assumes that you already have a working OpenStack
|
This section assumes that you already have a working OpenStack
|
||||||
environment with at least the following components installed:
|
environment with at least the following components installed:
|
||||||
|
@ -13,7 +13,7 @@ Compute, Image Service, Identity.
|
||||||
Prerequisites
|
Prerequisites
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
Before you install and configure the {{service}} service, you must create a
|
Before you install and configure the {{cookiecutter.service}} service, you must create a
|
||||||
database, service credentials, and API endpoints.
|
database, service credentials, and API endpoints.
|
||||||
|
|
||||||
#. To create the database, complete these steps:
|
#. To create the database, complete these steps:
|
||||||
|
@ -25,22 +25,22 @@ database, service credentials, and API endpoints.
|
||||||
|
|
||||||
$ mysql -u root -p
|
$ mysql -u root -p
|
||||||
|
|
||||||
* Create the ``{{codename}}`` database:
|
* Create the ``{{cookiecutter.codename}}`` database:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
CREATE DATABASE {{codename}};
|
CREATE DATABASE {{cookiecutter.codename}};
|
||||||
|
|
||||||
* Grant proper access to the ``{{codename}}`` database:
|
* Grant proper access to the ``{{cookiecutter.codename}}`` database:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
GRANT ALL PRIVILEGES ON {{codename}}.* TO '{{codename}}'@'localhost' \
|
GRANT ALL PRIVILEGES ON {{cookiecutter.codename}}.* TO '{{cookiecutter.codename}}'@'localhost' \
|
||||||
IDENTIFIED BY '{{codename|upper}}_DBPASS';
|
IDENTIFIED BY '{{cookiecutter.codename|upper}}_DBPASS';
|
||||||
GRANT ALL PRIVILEGES ON {{codename}}.* TO '{{codename}}'@'%' \
|
GRANT ALL PRIVILEGES ON {{cookiecutter.codename}}.* TO '{{cookiecutter.codename}}'@'%' \
|
||||||
IDENTIFIED BY '{{codename|upper}}_DBPASS';
|
IDENTIFIED BY '{{cookiecutter.codename|upper}}_DBPASS';
|
||||||
|
|
||||||
Replace ``{{codename|upper}}_DBPASS`` with a suitable password.
|
Replace ``{{cookiecutter.codename|upper}}_DBPASS`` with a suitable password.
|
||||||
|
|
||||||
* Exit the database access client.
|
* Exit the database access client.
|
||||||
|
|
||||||
|
@ -53,11 +53,11 @@ database, service credentials, and API endpoints.
|
||||||
|
|
||||||
#. To create the service credentials, complete these steps:
|
#. To create the service credentials, complete these steps:
|
||||||
|
|
||||||
* Create the ``{{codename}}`` user:
|
* Create the ``{{cookiecutter.codename}}`` user:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ openstack user create --domain default --password-prompt {{codename}}
|
$ openstack user create --domain default --password-prompt {{cookiecutter.codename}}
|
||||||
|
|
||||||
Install and configure components
|
Install and configure components
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
Next steps
|
Next steps
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
||||||
Your OpenStack environment now includes the {{codename}} service.
|
Your OpenStack environment now includes the {{cookiecutter.codename}} service.
|
||||||
|
|
||||||
To add additional services, see
|
To add additional services, see
|
||||||
docs.openstack.org/draft/install-guides/index.html .
|
docs.openstack.org/draft/install-guides/index.html .
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
Verify operation
|
Verify operation
|
||||||
~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Verify operation of the {{service}} service.
|
Verify operation of the {{cookiecutter.service}} service.
|
||||||
|
|
Loading…
Reference in New Issue