Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
2a9eecd2
Commit
2a9eecd2
authored
3 years ago
by
Zuul
Committed by
Gerrit Code Review
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge "docs: Parameterize kolla-ansible version and branch"
parents
0efb691f
28b3b83c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/source/conf.py
+33
-0
33 additions, 0 deletions
doc/source/conf.py
doc/source/user/quickstart.rst
+8
-4
8 additions, 4 deletions
doc/source/user/quickstart.rst
with
41 additions
and
4 deletions
doc/source/conf.py
+
33
−
0
View file @
2a9eecd2
...
@@ -110,3 +110,36 @@ openstack_projects = [
...
@@ -110,3 +110,36 @@ openstack_projects = [
'
swift
'
,
'
swift
'
,
'
watcher
'
,
'
watcher
'
,
]
]
# Global variables
# For replacement, use in docs as |VAR_NAME| (note there's no space around variable name)
# When adding new variables, make sure you add them to GLOBAL_VARIABLE_MAP dictionary as well
KOLLA_ANSIBLE_MAJOR_VERSION
=
'
9
'
# use 'master' or release name, e.g. 'victoria', 'xena' etc.
KOLLA_OPENSTACK_RELEASE
=
'
master
'
if
KOLLA_OPENSTACK_RELEASE
==
'
master
'
:
KOLLA_BRANCH_NAME
=
KOLLA_OPENSTACK_RELEASE
else
:
KOLLA_BRANCH_NAME
=
'
stable/{}
'
.
format
(
KOLLA_OPENSTACK_RELEASE
)
GLOBAL_VARIABLE_MAP
=
{
"
|KOLLA_ANSIBLE_MAJOR_VERSION|
"
:
KOLLA_ANSIBLE_MAJOR_VERSION
,
"
|KOLLA_OPENSTACK_RELEASE|
"
:
KOLLA_OPENSTACK_RELEASE
,
"
|KOLLA_BRANCH_NAME|
"
:
KOLLA_BRANCH_NAME
,
}
def
replace_global_vars
(
app
,
docname
,
source
):
# unlike rst_epilog, replaces variables (strings) in code blocks as well
# thanks to https://github.com/sphinx-doc/sphinx/issues/4054#issuecomment-329097229
result
=
source
[
0
]
for
key
in
app
.
config
.
GLOBAL_VARIABLE_MAP
:
result
=
result
.
replace
(
key
,
app
.
config
.
GLOBAL_VARIABLE_MAP
[
key
])
source
[
0
]
=
result
def
setup
(
app
):
app
.
add_config_value
(
'
GLOBAL_VARIABLE_MAP
'
,
{},
True
)
app
.
connect
(
'
source-read
'
,
replace_global_vars
)
This diff is collapsed.
Click to expand it.
doc/source/user/quickstart.rst
+
8
−
4
View file @
2a9eecd2
...
@@ -149,19 +149,23 @@ Install Kolla-ansible
...
@@ -149,19 +149,23 @@ Install Kolla-ansible
Install Kolla-ansible for deployment or evaluation
Install Kolla-ansible for deployment or evaluation
--------------------------------------------------
--------------------------------------------------
For a list of ``kolla-ansible`` versions compatible with each OpenStack release
see `Kolla Ansible release notes
<https://docs.openstack.org/releasenotes/kolla-ansible/>`__.
#. Install kolla-ansible and its dependencies using ``pip``.
#. Install kolla-ansible and its dependencies using ``pip``.
If using a virtual environment:
If using a virtual environment:
.. code-block:: console
.. code-block:: console
pip install kolla-ansible
pip install
'
kolla-ansible
== |KOLLA_ANSIBLE_MAJOR_VERSION|.*'
If not using a virtual environment:
If not using a virtual environment:
.. code-block:: console
.. code-block:: console
sudo pip3 install kolla-ansible
sudo pip3 install
'
kolla-ansible
== |KOLLA_ANSIBLE_MAJOR_VERSION|.*'
#. Create the ``/etc/kolla`` directory.
#. Create the ``/etc/kolla`` directory.
...
@@ -206,8 +210,8 @@ Install Kolla for development
...
@@ -206,8 +210,8 @@ Install Kolla for development
.. code-block:: console
.. code-block:: console
git clone
https://github.com
/openstack/kolla
git clone
--branch |KOLLA_BRANCH_NAME| https://opendev.org
/openstack/kolla
git clone
https://github.com
/openstack/kolla-ansible
git clone
--branch |KOLLA_BRANCH_NAME| https://opendev.org
/openstack/kolla-ansible
#. Install requirements of ``kolla`` and ``kolla-ansible``:
#. Install requirements of ``kolla`` and ``kolla-ansible``:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment