Skip to content

Commit

Permalink
Ensure that RDO/SUSE series repo instructions stay up to date
Browse files Browse the repository at this point in the history
The deployment host documentation gets out of date really quickly.
This patch makes it self maintaining.

Note that due to the fact that this is a stable branch and that
the documentation configuration is vastly different to master,
this is a re-implementation rather than a backport.

Some formatting adjustments have made to prevent the interpretation
of URL's as links by sphinx and to remove the use of multi-line shell
commands.

Closes-Bug: #1759721
Change-Id: Id28540d335390a52e0eb65a734a1d594235265d6
  • Loading branch information
Jesse Pretorius committed Apr 4, 2018
1 parent ba277a2 commit c3c9978
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
6 changes: 5 additions & 1 deletion deploy-guide/source/conf.py
Expand Up @@ -319,14 +319,18 @@
.. |current_release_formal_name| replace:: %s
.. |upgrade_backup_dir| replace:: %s
.. |latest_tag| replace:: %s
.. |rdo_series| replace:: %s
.. |suse_series| replace:: %s
""" % (previous_release_branch_name,
current_release_branch_name,
previous_release_capital_name,
previous_release_formal_name,
current_release_capital_name,
current_release_formal_name,
upgrade_backup_dir,
latest_tag)
latest_tag,
current_release_branch_name,
current_release_formal_name)

watermark = os.popen("git branch --contains $(git rev-parse HEAD) | awk -F/ '/stable/ {print $2}'").read().strip(' \n\t').capitalize()
if watermark == "":
Expand Down
26 changes: 15 additions & 11 deletions deploy-guide/source/deploymenthost.rst
Expand Up @@ -56,8 +56,7 @@ Before you begin, we recommend upgrading your system packages and kernel.

.. code-block:: shell-session
# apt-get install aptitude build-essential git ntp ntpdate \
openssh-server python-dev sudo
# apt-get install aptitude build-essential git ntp ntpdate openssh-server python-dev sudo
#. Configure NTP to synchronize with a suitable time source.

Expand All @@ -78,11 +77,10 @@ Before you begin, we recommend upgrading your system packages and kernel.
#. Install additional software packages if they were not installed
during the operating system installation:

.. code-block:: shell-session
.. parsed-literal::
# yum install https://rdoproject.org/repos/openstack-pike/rdo-release-pike.rpm
# yum install git ntp ntpdate openssh-server python-devel \
sudo '@Development Tools'
# yum install \https://rdoproject.org/repos/openstack-|rdo_series|/rdo-release-|rdo_series|.rpm
# yum install git ntp ntpdate openssh-server python-devel sudo '\@Development Tools'
#. Configure NTP to synchronize with a suitable time source.

Expand Down Expand Up @@ -120,10 +118,10 @@ Before you begin, we recommend upgrading your system packages and kernel.
#. Install additional software packages if they were not installed
during the operating system installation:

.. code-block:: shell-session
.. parsed-literal::
# zypper install git-core ntp openssh python-devel \
sudo gcc libffi-devel libopenssl-devel
# zypper ar \http://download.opensuse.org/repositories/Cloud:/OpenStack:/|suse_series|/openSUSE_Leap_42.3 OBS:Cloud:OpenStack:|suse_series|
# zypper install git-core ntp openssh python-devel sudo gcc libffi-devel libopenssl-devel
#. Configure NTP to synchronize with a suitable time source.

Expand Down Expand Up @@ -160,8 +158,14 @@ Install the source and dependencies for the deployment host.

.. parsed-literal::
# git clone -b |latest_tag| https://git.openstack.org/openstack/openstack-ansible \\
/opt/openstack-ansible
# git clone -b |latest_tag| \https://git.openstack.org/openstack/openstack-ansible /opt/openstack-ansible
If git.openstack.org can not be accessed to run git clone, github.com can be used
as an alternative repo:

.. parsed-literal::
# git clone -b |latest_tag| \https://github.com/openstack/openstack-ansible.git /opt/openstack-ansible
#. Change to the ``/opt/openstack-ansible`` directory, and run the
Ansible bootstrap script:
Expand Down

0 comments on commit c3c9978

Please sign in to comment.